Hide Console

Discussion in 'Python' started by Kevin McKinley, Aug 25, 2008.

  1. When I use py2exe to convert Python script to executable Windows programs I always have a black console pop up behind my program. If i run the script before i convert it with py2exe it don't have the console because i save the script ending with .pyw instead of .py. Is there a way to get rid or hide this console once i've turned it into a executable windows program?

    Thanks you
    Kevin McKinley
     
    Kevin McKinley, Aug 25, 2008
    #1
    1. Advertising

  2. Kevin McKinley

    alex23 Guest

    On Aug 25, 10:59 am, Kevin McKinley <> wrote:
    > When I use py2exe to convert Python script to executable Windows programs I always have a black console pop up behind my program.  If i run the script before i convert it with py2exe it don't have the console because i save the script ending with .pyw instead of .py.  Is there a way to get rid or hide this console once i've turned it into a executable windows program?


    You probably have a line in your setup.py similar to:

    setup(console=['app.py'])

    Change the 'console' to 'window' as such:

    setup(window=['app.py'])

    I -think- that should take care of it, but it's been a while since I
    last used py2exe.
     
    alex23, Aug 25, 2008
    #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. Ben Finney
    Replies:
    2
    Views:
    996
    Egor Bolonev
    Jun 30, 2003
  2. Egor Bolonev
    Replies:
    0
    Views:
    482
    Egor Bolonev
    Jun 30, 2003
  3. Serge Terekhoff
    Replies:
    0
    Views:
    643
    Serge Terekhoff
    Jun 30, 2003
  4. Miktor
    Replies:
    7
    Views:
    12,059
    Joe Bacigalupa
    Aug 9, 2005
  5. Replies:
    5
    Views:
    3,433
    James Kanze
    Mar 4, 2008
Loading...

Share This Page