Search code examples
pythonwindowspywin32

Hide console from Python script?


Possible Duplicate:
How to hide console window in python?

I have a simple script with one messagedialog only...

how can I hide the console from it when I execute the app?


Solution

  • Execute the script using pythonw.exe rather than python.exe. You can set that up to happen automatically by giving the script the extension .pyw rather than .py.