wxPython launches DOS shell

M

Matt Rapoport

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
 
A

Alan James Salmoni

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top