How to turn off Python's event log window in the background?

Chris Angelico rosuav at gmail.com
Sun Aug 3 07:34:54 EDT 2014


On Sun, Aug 3, 2014 at 9:05 PM,  <dufriz at gmail.com> wrote:
> It was suggested to me on another forum that I use pythonw.exe instead of python.exe to prevent the window from being displayed, but I don't know how to do this, because it is all automatic: I just click on the .py file, and the python interpreter is automatically loaded.
>

Assuming you have your installation set up in the normal way, renaming
your .py file to .pyw will have it run with pythonw.exe instead of
python.exe. That should do what you want.

Have fun!

ChrisA



More information about the Python-list mailing list