[python-win32] Question on .pyw extension in Python
tim.golden at viacom-outdoor.co.uk
Mon Nov 28 16:45:52 CET 2005
> I've installed Python 2.4 on my pc which runs Windows xp.
> I downloaded scripts from some sites which uses .pyw
> extension. When I use them the script runs without popping
> up a console. But when I try to write my own script with
> pyw extension it doesn't work. Can any one help me?
Just to clarify: the .pyw extension simply means: run this
Python script without creating a console window. This is
generally what you want if you have a program which is
GUI-based. You can run *exactly* the same program with a
console window simply by renaming it to <something>.py.
In general, you'll want to name your scripts .py until
you've debugged everything, That way, any errors will
appear on your console window.
If you haven't already, have a look at the FAQ:
and in particular the Python Windows FAQ:
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
More information about the Python-win32