mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
cleanups and tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -170,15 +170,15 @@ int wxPyApp::MainLoop()
|
||||
#endif
|
||||
DeletePendingObjects();
|
||||
}
|
||||
bool initialized = wxTopLevelWindows.GetCount() != 0;
|
||||
if (initialized) {
|
||||
//bool initialized = wxTopLevelWindows.GetCount() != 0;
|
||||
//if (initialized) {
|
||||
if ( m_exitOnFrameDelete == Later ) {
|
||||
m_exitOnFrameDelete = Yes;
|
||||
}
|
||||
|
||||
retval = wxApp::MainLoop();
|
||||
OnExit();
|
||||
}
|
||||
//}
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ logged in on the main display of your Mac."""
|
||||
|
||||
|
||||
def __del__(self):
|
||||
self.RestoreStdio() # Just in case the MainLoop was overridden
|
||||
self.RestoreStdio() # Just in case the MainLoop was overridden without calling RestoreStio
|
||||
|
||||
|
||||
def Destroy(self):
|
||||
@@ -202,8 +202,9 @@ logged in on the main display of your Mac."""
|
||||
|
||||
def MainLoop(self):
|
||||
"""Execute the main GUI event loop"""
|
||||
wx.PyApp.MainLoop(self)
|
||||
rv = wx.PyApp.MainLoop(self)
|
||||
self.RestoreStdio()
|
||||
return rv
|
||||
|
||||
|
||||
def RedirectStdio(self, filename=None):
|
||||
|
||||
@@ -11,8 +11,6 @@ public:
|
||||
PyObject* m_func;
|
||||
};
|
||||
|
||||
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxPyCallback, wxEvtHandler);
|
||||
|
||||
wxPyCallback::wxPyCallback(PyObject* func) {
|
||||
|
||||
Reference in New Issue
Block a user