wxPython launches DOS shell

Discussion in 'Python' started by Matt Rapoport, Aug 19, 2003.

  1. 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
     
    Matt Rapoport, Aug 19, 2003
    #1
    1. Advertising

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

    (Matt Rapoport) wrote in message news:<>...
    > 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, Aug 20, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brett
    Replies:
    11
    Views:
    602
    Brett
    Oct 22, 2003
  2. Ben Fairbank
    Replies:
    2
    Views:
    5,460
  3. john san
    Replies:
    19
    Views:
    743
    Diez B. Roggisch
    Feb 18, 2005
  4. tomhr
    Replies:
    27
    Views:
    1,418
    Mike Wahler
    Jan 12, 2006
  5. Robert Wallace

    my own perl "dos->unix"/"unix->dos"

    Robert Wallace, Jan 21, 2004, in forum: Perl Misc
    Replies:
    7
    Views:
    280
    Michele Dondi
    Jan 22, 2004
Loading...

Share This Page