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

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

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:
    1,212
    Egor Bolonev
    Jun 30, 2003
  2. Miktor
    Replies:
    7
    Views:
    12,700
    Joe Bacigalupa
    Aug 9, 2005
  3. Hide Console Window

    , Oct 3, 2006, in forum: C++
    Replies:
    2
    Views:
    647
  4. Replies:
    5
    Views:
    3,740
    James Kanze
    Mar 4, 2008
  5. Krisp
    Replies:
    2
    Views:
    1,635
    Daniel Pitts
    Mar 1, 2009
  6. Muddy Coder

    Hide DOS console for .pyc file

    Muddy Coder, Sep 11, 2010, in forum: Python
    Replies:
    6
    Views:
    1,004
    Jonathan Hartley
    Sep 13, 2010
  7. Kris Rudin

    console app w/o seeing console?

    Kris Rudin, Nov 11, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    293
    Randy Charles Morin
    Nov 11, 2003
  8. xliiv
    Replies:
    5
    Views:
    769
    xliiv
    May 22, 2012
Loading...