Others have already suggested renaming from py to pyw. If you instead refer to output redirection redirection, redirect = True when creating the wx.App class.
See for example http://www.wxpython.org/docs/api/wx.App-class.html
Signature __init__
equals
__init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True)
If you set redirect=True
and the file name is different from None, sys.stdout
and sys.stderr
will be redirected to the file name. Note that the default value for Windows and Mac is True. If redirect==True and filename is None
, the output will be printed in a pop-up window different from other frames. This can be very useful, so during debugging you can monitor what is happening, but not clutter up the user interface with the internal components of your application in release mode.
source share