I have a simple GUI python 2.7 app developed with wxpython. I don't want it to show the cmd line. I renamed the file to *.pyw and when I open it as a python script it works ok (no cmd line). But when I compile it via py2exe, the executable file shows the cmd line anyways. Is there any way to get around this?
Asked
Active
Viewed 1,063 times
1
-
1possible duplicate of [Hiding command-line dialog in py2exe](http://stackoverflow.com/questions/11003040/hiding-command-line-dialog-in-py2exe) – Rod Oct 08 '13 at 16:24
2 Answers
2
You probably want to use window
instead of console
in your setup script.
from distutils.core import setup
import py2exe
setup(window=['hello.py'])

Rod
- 52,748
- 3
- 38
- 55
2
OK, sorry for the trouble, a bit more research and I found the answer here:
Hiding command-line dialog in py2exe
Anyways thank you for your time.

Community
- 1
- 1

Tomek Urbańczyk
- 177
- 1
- 8