Hello,
In the __init__ method of a standard QDialog I check for some requirements
to be fulfilled before the gui is shown (I communicate with a server over
a QTcpSocket for that matter) If the conditions fail I want to exit the
Application. How would I properly do that?
Currently I tried:
To: "pyqt@riverbankcomputing.com"
Sent: Fri, April 16, 2010 8:03:51 AM
Subject: [PyQt] properly exiting application while still in init
Hello,
In the __init__ method of a standard QDialog I check for some requirements to
be fulfilled before the gui is shown (I communicate with a serve
Can try something like this:
in init:
qapplication.postEvent(baseWindow, QtGui.QCloseEvent())
in baseWindow:
def closeEvent(self, event):
self.app.quit()
On 04/16/10 07:03, Sebastian Elsner wrote:
> Hello,
>
> In the __init__ method of a standard QDialog I check for some
> requirements to be