trouble quitting PyQt4 App
python at mrabarnett.plus.com
Mon Sep 14 15:14:59 CEST 2009
Soumen banerjee wrote:
> Im new to PyQt4 and im having fun using it. but ive run into a bit of
> a problem. I cant quit the application.
> The application has 2 modules. The gui module(gui.py) and then the
> main program(main.py)
> so heres the problem:- when i hit the quit button, quit is set to high
> (in the Gui module) and then the while loop in the speak thread
> quits(printing quitting loop) and it updates the log file as its
> supposed to do. then after it prints calling exit, the app freezes.
> Isnt sys.exit() supposed to kill the interpreter? So, what is going
> on? why does the app not quit?
sys.exit() just raises a SystemExit exception, so only the thread is
More information about the Python-list