[PyQT] After MessageBox app quits...why?

Anssi Saari as at sci.fi
Mon Nov 7 03:49:54 EST 2016


Demosthenes Koptsis <demosthenesk at gmail.com> writes:

> Hello, i have a PyQT systray app with a menu and two actions.
>
> Action1 is Exit and action2 display a MessageBox with Hello World message.
>
> When i click OK to MessageBox app quits...why?
>
> http://pastebin.com/bVA49k1C

I haven't done anything with Qt in a while but apparently you need to
call QtGui.QApplication.setQuitOnLastWindowClosed(False) before
trayIcon.show().



More information about the Python-list mailing list