Really strange behavior

Steven D'Aprano steve at
Sat Nov 4 18:19:36 CET 2006

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 actually the code you are trying to run, because "retrun app"
would give a SyntaxError. You should copy and paste the actual code you
have run, don't retype it.

> my window doesn't show and the script doesn't stop but remains trapped
> in some gui loop.
> What's the problem I can't see??

Don't know, I can't see it either.

Why don't you add some temporary print statements into your code to try to
narrow it down?

def main():
    print "entered main"
    app = creApp()
    print "done creApp"
    print "done creWin"
    from twisted.internet import reactor
    print "done import"
    print "done; exiting main"


More information about the Python-list mailing list