Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   wxPython launches DOS shell (http://www.velocityreviews.com/forums/t321196-wxpython-launches-dos-shell.html)

Matt Rapoport 08-19-2003 03:48 PM

wxPython launches DOS shell
 
Does anyone know how to avoid getting a DOS shell launched everytime
you run a wxPython script? The shell is used to run Python.exe but it
doesn't look very professional when a black window pops up along with
your GUI.

Thanks,

Matt

Alan James Salmoni 08-20-2003 10:15 AM

Re: wxPython launches DOS shell
 
Like the other posters say: use pythonw.exe.

The best way to autolaunch this is change the python file name from
".py" to ".pyw", so "script.py" becomes "script.pyw". This means that
a console window (DOS box) isn't created. Of course, this doesn't work
on any other OS... ;)

Alan James Salmoni
SalStat Statistics
http://salstat.sunsite.dk

matthew.rapoport@accenture.com (Matt Rapoport) wrote in message news:<4150f6c8.0308190748.7633e5c9@posting.google. com>...
> Does anyone know how to avoid getting a DOS shell launched everytime
> you run a wxPython script? The shell is used to run Python.exe but it
> doesn't look very professional when a black window pops up along with
> your GUI.
>
> Thanks,
>
> Matt



All times are GMT. The time now is 09:58 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.