[PyQt] multiple dialog boxes simultaneously
Oleg Klimov
omgtech at gmail.com
Mon Dec 3 21:12:05 GMT 2007
> > tmr = QtCore.QTimer(self)
> Since you aren't keeping a refernce to QTimer or giving it an explicit Qt
> parent, it's probably getting garbage collected. Try replacing tmr with
> self.tmr.
That's right. Seems not just garbage-collected, but immediately
destroyed on function exit (as a local variable). QTimer needs to
exist in order to work, doesn't it.
> > How do I make it possible for both the child and parent to be accessible at the same time?
Don't make them modal, that's all.
Oleg
More information about the PyQt
mailing list