hey
I have the issue that when I close the last window of my app, it will
not terminate if stdout/stderr had ever previously been called. For
example, if I ever use 'print' in the app (not that I want to in the
final version, but the point stands), then the stdout/stderr window
will remain open until the user closes that as well.
Overriding the EVT_CLOSE handler and calling self.Destroy() on the
main window doesn't help, and attempting wx.Exit() in the handler
hangs the app.
This applies regardless of whether I pass redirect=False to the app or
not.
The issue is that I want to run the final product from a .pyw file;
and the fact that stdout/stderr is not terminating correctly is
causing the process to hang if I run it as such and then close the
main window.
How can I close the stdout/stderr window in the EVT_CLOSE handler, and
thus terminate the application? Or, perhaps more relevantly, is there
a better way to handle this?
I'm running Windows 7 64 bit, python 2.6.4, wxpython 2.8.10.1 32-bit.
Everything else to do with wxpython runs perfectly, so I doubt it's
any sort of hardware issue (but I figure it can't hurt to mention it).
I can write up some code to demonstrate this if required, but I can't
provide the in-place copy because it's several thousand lines all up.
Thanks in advance for your help
···
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en