from PyQt4 import QtCore, QtGui
def xxx():
def __init__(self):
self.timer=QtCore.QTimer()
QtCore.QObject.connect(self.timer,QtCore.SIGNAL("timeout()"), self.OnTimer)
self.timer.start( 1000 )
def OnTimer(self):
print 'Get Timer'
from PyQt4 import QtCore, QtGui
def xxx():
def __init__(self):
self.timer=QtCore.QTimer()
QtCore.QObject.connect(self.timer,QtCore.SIGNAL("timeout()"), self.OnTimer)
self.timer.start( 1000 )
def OnTimer(self):
print 'Get Timer'