[PyQt] QCoreApplication doesn't exit

Thomas Coopman thomas.coopman at gmail.com
Tue Mar 24 23:10:31 GMT 2009


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?


-- 
Thomas Coopman
Thomas.coopman at gmail.com


More information about the PyQt mailing list