I think this started happening after upgrading to the latest but I'm not sure. Anyway, when I run my application I get the wxPython stdout/stderr window in the background. How can I get rid of/suppress this?
> I think this started happening after upgrading to the latest but I'm
not
> sure. Anyway, when I run my application I get the wxPython
stdout/stderr
> window in the background. How can I get rid of/suppress this?
>
If this is on MS Windows, make sure your main file ends in .pyw
Or run with pythonw.exe instead of python.exe
I swear this must be the FAQ of all FAQs in Python-land. It should probably
be specifically mentioned in all tutorials very early-on.
I think this started happening after upgrading to the latest but I'm not sure. Anyway, when I run my application I get the wxPython stdout/stderr window in the background. How can I get rid of/suppress this?
This wxFrame is created by the app and is setup to automatically be shown when there is output to sys.stdout or sys.stderr. It's been done this way since the earliest versions of wxPython so it is more likely something in your app that has changed. It is enabled by default on Windows, to turn it off you can pass 0 to the wxApp constructor. See wxPyOnDemandOutputWindow and wxApp in wx.py for more details.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!