russ at coldstonelabs.org
Tue Jan 26 05:51:36 GMT 2010
Seems to work for me, and if it usually works for you, then it is
probably what you didn't include in your email that is not working?
#Does it for me
from PyQt4 import QtCore, QtGui
a = QtGui.QApplication(sys.argv)
m = Main()
Jason H wrote:
> I have a class that is created and needs to run a function after the event loop starts.
> Usually I just do:
> if __name__=="__main__":
> a = QApplication(sys.argv)
> QTimer.singleShot(0, m.startProcessing)
> But my startProcessing slot does not get called.
More information about the PyQt