[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QCoreApplication doesn't exit
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2009-03-24 23:34:53
Message-ID: 1e275a2b878ef1ceadbffc7a87ec930d () localhost
[Download RAW message or body]

On Wed, 25 Mar 2009 00:10:31 +0100, Thomas Coopman
<thomas.coopman@gmail.com> wrote:
> I have a problem with QCoreApplication,  my program doesn't return.
> 
> this is the the code
> 
> import sys
> 
> from PyQt4.QtCore import QCoreApplication
> 
> if __name__=="__main__":
>     app=QCoreApplication(sys.argv)
>     sys.exit(app.exec_())
> 
> but this program doesn't exit and blocks all input in konsole, it just
> doesn't do anything and doesn't respond to keypresses.
> 
> Am I doing something wrong?

It's doing exactly what you have told it to do - sitting in the event loop
waiting for events to process.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic