Hide Console

alex23 wuwei23 at gmail.com
Sun Aug 24 21:16:20 EDT 2008


On Aug 25, 10:59 am, Kevin McKinley <kem1... at yahoo.com> 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.




More information about the Python-list mailing list