4

Possible Duplicate:
How can I hide the console window in a PyQt app running on Windows?

I made a GUI program using QT Designer and Pyside, and it works completely. The only problem is that whenever I run it, I get a cmd.exe window in the background. This is quite annoying. Is there any way to fix this?

Community
  • 1
  • 1
cgt
  • 526
  • 6
  • 18
  • 1
    http://stackoverflow.com/questions/1310972/getting-rid-of-python-console-in-wxpython-under-windows – Sam Nov 22 '11 at 05:02

1 Answers1

8

Try changing the file extension to .pyw. Double-clicking a .pyw will use pythonw.exe instead of python.exe.

Roger
  • 951
  • 8
  • 6
  • 1
    @cgt This is the better answer. And the recommend thing to do with scripts on windows os. – Sam Nov 26 '11 at 03:46