Hide Console

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kevin McKinley

    Hide Console

    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



  • alex23

    #2
    Re: Hide Console

    On Aug 25, 10:59 am, Kevin McKinley <kem1...@yahoo. comwrote:
    When I use py2exe to convert Python script to executable Windows programsI 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 ridor 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.

    Comment

    Working...