wxpython ms-dos black window popping up in background

Chris Rebert clp at rebertia.com
Tue Sep 9 16:49:11 EDT 2008


You need to have the script be run by pythonw.exe as opposed to python.exe
pythonw.exe suppresses the DOS box from coming up and should be used
for running GUI applications such as yours.

Regards,
Chris

On Tue, Sep 9, 2008 at 1:33 PM, icarus <rsarpi at gmail.com> wrote:
> platform: windows xp professional, python 2.5, wxpython
>
> When I double-check on my program file test.py (for simplicity I'll be
> using this code below), I see the window just fine.  But the ms-dos
> black window pops up in the background. On Linux, no issues at all.
>
> How can I get rid of that ms-dos black window in the background?
> something I need to add to my code? a setting to adjust in windows?
> thanks in advance.
>
>
> #!/usr/bin/python
> import wx
>
> appwx = wx.App()
>
> frame = wx.Frame(None, -1, 'test.py')
> frame.Show()
>
> appwx.MainLoop()
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Follow the path of the Iguana...
http://rebertia.com



More information about the Python-list mailing list