Skip to content Skip to sidebar Skip to footer

How Do I Hide The Console Window For My App?

Possible Duplicate: How can I hide the console window in a PyQt app running on Windows? I've made a simple app that opens a QWebView but in addition to the app window Windows co

Solution 1:

Use pythonw.exe instead of python.exe


Solution 2:

On default Windows installations, .pyw files are opened without the console window (because they're loaded with pythonw), and .py files load in a console. So yeah, renaming to .pyw is probably easiest solution.

Also - if you're compiling with py2exe, you'll have to change "console=" to "window="


Post a Comment for "How Do I Hide The Console Window For My App?"