Saturday, January 1, 2011

Hidding the Console

As you have probably noticed the typical Python extension is .py.  If you change this in explorer to .pyw pythonw.exe will execute the script instead of python.exe.  As a result the console window will be suppressed and any GUI windows will still come up.  Preventing the console looks more professional for a finished build, but during development it is still very useful for debugging.

.py appication launches a shell.