简体   繁体   中英

How to make PYQT gui update upon real time data acquasition? The objects considered being QLCD and Qlabel?

I do understand there is way using Threads by emplying Qtimer and yes I do want it to update on a real time basis. I have experienced changing of these object Qlcd and Qlabel upon pushing button how ever i want it to update upon itself. Any help would be appreciated.

Since there was no answer from anyone I went in for digging and figured it out.

You need to add follwing code segment for repeated execution on a timely basis this helps the GUI update itself periodically for the stored variable data and update Qlable and QLCD widgets.

    self.timer.timeout.connect(QtCore.SIGNAL(self.READ_DATA))
    self.timer.start(51)

This upon trigger yield continus execturion as there is periodic signal generated.

Note: READ_DATA is the def i have declared in my program.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM