Re: [PyQt] how to use the button to control the program

2013-08-08 Thread
hreads, and after that read http://blog.qt.digia.com/blog/* > *2010/06/17/youre-doing-it-**wrong/<http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/> > I've posted on this mailing list before helping users with their QThread > problems, if you look those up they ma

Re: [PyQt] how to use the button to control the program

2013-07-31 Thread
Hi, Dave, thank you very much for helping me. I am a newcomer to pyqt4, so maybe my questions are low-level.Thanks again. If the function does not have returns, can the button connect the function? The newtime function realizes a loop to change the time every 1s, there is no return. I want to click

[PyQt] how to use the button to control the program

2013-07-30 Thread
Hi,all, I want to use a button to control when the program start in pyqt4, in other words, when I press the start button, the program will work. I wrote some code, but it doesn't work. please help me to correct it. Thanks in advance. Best regards Harry import sys from PyQt4 import QtGui from PyQt

Re: [PyQt] How to change the value which is shown on GUI

2013-07-26 Thread
Hi, Tim, Thank you very much for helping me, I will try it tomorrow. If there is other value such as current, temperature etc. , this value like the voltage, is also the real changing data, how to realize this function? Calling updateLabel() many times? One more question, the voltage will change i

[PyQt] How to change the value which is shown on GUI

2013-07-26 Thread
Hello list, I want to design a battery monitoring system via raspberrypi. The voltage of battery is real changing data, I try to write some code, but the voltage can not change when I change the value of voltage. here is part of my code: import sys from PyQt4 import QtGui,QtCore import time clas