wxPython launches DOS shell

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt Rapoport

    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

    #2
    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


    matthew.rapopor t@accenture.com (Matt Rapoport) wrote in message news:<4150f6c8. 0308190748.7633 e5c9@posting.go ogle.com>...[color=blue]
    > 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[/color]

    Comment

    Working...