Hide Console

K

Kevin McKinley

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
 
A

alex23

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top