[PyQt] tkinter after method in pyqt
uahmed
gleam.uahmed at gmail.com
Wed Aug 17 19:22:13 BST 2011
Thanks alot it works , Here is working example taken from other website .
import sys
from PyQt4 import QtCore, QtGui
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
#QtCore.QTimer.singleShot(4000, self.start)
def start(self):
print 'start'
QtCore.QTimer.singleShot(4000, self.start)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
mw = MainWindow()
mw.show()
mw.start()
sys.exit(app.exec_())
On Wed, Aug 17, 2011 at 12:23 PM, Phil Thompson <phil at riverbankcomputing.com
> wrote:
> On Wed, 17 Aug 2011 03:07:03 +0500, uahmed <gleam.uahmed at gmail.com> wrote:
> > Hi
> >
> > In tkinter i use after method to recall the function after particular
> > interval time and that function do the the changes in GUI . What i
> should
> > use to do changes in Pyqt GUI ?
>
> QTimer.singleShot()
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110817/f2cb9c79/attachment.html>
More information about the PyQt
mailing list