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"
    creWin()
    print "done creWin"
    from twisted.internet import reactor
    print "done import"
    reactor.run()
    print "done reactor.run; exiting main"


-- 
Steven.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to