Re: Really strange behavior

2006-11-06 Thread David Boddie
Sion Arrowsmith wrote: > I don't know if this is the problem or not (knowing neither Qt nor > Twisted), but creWin() creates a window (or two) then throws it > (them?) away on returning to main() (I assume you've chopped > off the bit where main() is actually called). So it's not too > surprising

Re: Really strange behavior

2006-11-06 Thread Sion Arrowsmith
IloChab <[EMAIL PROTECTED]> wrote: [this works] >def main(): >app = QtGui.QApplication(sys.argv) >qt4reactor.install(app) >MainWindow = QtGui.QMainWindow() >win = Window(MainWindow) >MainWindow.show() >from twisted.internet import reactor >reactor.run() [this doesn't] >

Re: Really strange behavior

2006-11-05 Thread IloChab
Il Sun, 05 Nov 2006 04:19:36 +1100, Steven D'Aprano ha scritto: > Why don't you add some temporary print statements into your code to try > to narrow it down? > > I did it and I followed the script with the dubugger and what I saw is that it gets lost in the simulate method of QTReactor instead

Re: Really strange behavior

2006-11-04 Thread Steven D'Aprano
On Sat, 04 Nov 2006 13:02:26 +0100, IloChab wrote: > If I run this: > # > > import qt4reactor > import sys > from PyQt4 import QtGui > from winIum import Window > > def creApp(): > app = QtGui.QApplication(sys.argv) > qt4reactor.install(app) > retrun app This is not ac

Re: Really strange behavior

2006-11-04 Thread ArdPy
IloChab wrote: > Sorry I wasn't able to be more specific on my topic but I really do not > know how to classify my problem, I mean that I can't understand if it's > a python > or a twisted > or a Qt4 > problem > I'm trying to run a simple application with Twisted and Qt4. > To do this I downloade

Really strange behavior

2006-11-04 Thread IloChab
Sorry I wasn't able to be more specific on my topic but I really do not know how to classify my problem, I mean that I can't understand if it's a python or a twisted or a Qt4 problem I'm trying to run a simple application with Twisted and Qt4. To do this I downloaded this: http://twistedmatr