Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11392

Re: pythonw.exe

From Nobody <nobody@nowhere.com>
Subject Re: pythonw.exe
Date 2011-08-14 15:30 +0100
Message-Id <pan.2011.08.14.14.30.24.372000@nowhere.com>
Newsgroups comp.lang.python
References <mailman.2270.1313328374.1164.python-list@python.org>
Organization Zen Internet

Show all headers | View raw


On Sun, 14 Aug 2011 06:23:45 -0700, Ronald Reynolds wrote:

> in my python directory there is a python.exe file which I understand
> completely but there is also a pythonw.exe DOS seems to honor the pythonw
> command (No error message) but nothing happens. What is pythonw.exe?

Windows distinguishes between "console" and "GUI" executables. python.exe
is a console executable, pythonw.exe is a GUI executable. One difference
is that GUI executables don't have stdin/stdout/stderr, so you can't use
pythonw.exe as an interactive interpreter.

The main use for pythonw.exe is if you write a GUI program in Python
(using e.g. TkInter, wxPython, etc) and you want it to be able to run it
from an icon (desktop, start menu) without it opening a console window
(running a console executable from an icon will open a console window).

> Also
> is there a way to invoke idle from the DOS prompt?  I tried idle
> filename.py  and  just idle. Is there any .exe for idle?

"C:\Program Files (x86)\Python27\Lib\idlelib\idle.py" filename.py

... or similar, depending upon where Python is installed.

BTW, unless you're using Windows 95/98/ME, you don't have a
"DOS Prompt". The command prompt in Windows NT/2000/XP/Vista/7 isn't DOS.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pythonw.exe Ronald Reynolds <ron@bumpker.com> - 2011-08-14 06:23 -0700
  Re: pythonw.exe Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-08-14 15:50 +0200
  Re: pythonw.exe Nobody <nobody@nowhere.com> - 2011-08-14 15:30 +0100
    Re: pythonw.exe Chris Angelico <rosuav@gmail.com> - 2011-08-14 16:52 +0100
      Re: pythonw.exe Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-08-14 21:59 +0200
        Re: pythonw.exe harrismh777 <harmar@member.fsf.org> - 2011-08-14 15:20 -0500
          Re: pythonw.exe Chris Angelico <rosuav@gmail.com> - 2011-08-14 21:28 +0100
            Re: pythonw.exe Seebs <usenet-nospam@seebs.net> - 2011-08-14 22:27 +0000
          Re: pythonw.exe Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-14 19:14 -0700
          Re: pythonw.exe Chris Angelico <rosuav@gmail.com> - 2011-08-15 09:32 +0100
    Re: pythonw.exe Terry Reedy <tjreedy@udel.edu> - 2011-08-14 20:49 -0400

csiph-web