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


Groups > comp.lang.python > #11388 > unrolled thread

pythonw.exe

Started byRonald Reynolds <ron@bumpker.com>
First post2011-08-14 06:23 -0700
Last post2011-08-14 20:49 -0400
Articles 11 — 9 participants

Back to article view | Back to comp.lang.python


Contents

  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

#11388 — pythonw.exe

FromRonald Reynolds <ron@bumpker.com>
Date2011-08-14 06:23 -0700
Subjectpythonw.exe
Message-ID<mailman.2270.1313328374.1164.python-list@python.org>
Dear Python Friends:
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?
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?

                                    Sincerely, 'Ron "bumpker" Reynolds' 

[toc] | [next] | [standalone]


#11390

FromIrmen de Jong <irmen.NOSPAM@xs4all.nl>
Date2011-08-14 15:50 +0200
Message-ID<4e47d2c0$0$23857$e4fe514c@news2.news.xs4all.nl>
In reply to#11388
On 14-8-2011 15:23, Ronald Reynolds wrote:
> Dear Python Friends:
> 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?
> 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?
> 
>                                     Sincerely, 'Ron "bumpker" Reynolds' 

pythonw.exe is the same as python.exe but it doesn't open a console window, and launches
python in the background. This allows you to easily run background programs or GUI
programs in a nicer way (without a dummy console window popping up).

Idle has no .exe as far as I know but you can start it like this:

	pythonw -m idlelib.idle

You could create an alias or batch file called 'idle' that does this.

Irmen

[toc] | [prev] | [next] | [standalone]


#11392

FromNobody <nobody@nowhere.com>
Date2011-08-14 15:30 +0100
Message-ID<pan.2011.08.14.14.30.24.372000@nowhere.com>
In reply to#11388
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.

[toc] | [prev] | [next] | [standalone]


#11399

FromChris Angelico <rosuav@gmail.com>
Date2011-08-14 16:52 +0100
Message-ID<mailman.2277.1313337128.1164.python-list@python.org>
In reply to#11392
On Sun, Aug 14, 2011 at 3:30 PM, Nobody <nobody@nowhere.com> wrote:
> 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.
>

I don't see this as any sloppier than referring to "opening a
<whatever> prompt" when you mean "opening up a windowed command
interpreter". The command interpreter in NT+ uses an interface that
derives from the original DOS command interpreter, and a lot of people
consider it to be as primitive (not realising that it has a lot of
features, eg tab completion, that are WAY better even than
command+doskey); it's a lot closer to Unix's bash than to MS-DOS's
command. (I do prefer bash, though.)

ChrisA

[toc] | [prev] | [next] | [standalone]


#11413

FromThorsten Kampe <thorsten@thorstenkampe.de>
Date2011-08-14 21:59 +0200
Message-ID<MPG.28b2477053dad09f989856@news.individual.de>
In reply to#11399
* Chris Angelico (Sun, 14 Aug 2011 16:52:05 +0100)
> On Sun, Aug 14, 2011 at 3:30 PM, Nobody <nobody@nowhere.com> wrote:
> > 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.
> 
> I don't see this as any sloppier than referring to "opening a
> <whatever> prompt" when you mean "opening up a windowed command
> interpreter".

You're misunderstanding what people mean by "DOS prompt". They don't 
mean "this is the DOS command shell", they mean "this is DOS".

Thorsten

[toc] | [prev] | [next] | [standalone]


#11415

Fromharrismh777 <harmar@member.fsf.org>
Date2011-08-14 15:20 -0500
Message-ID<H6W1q.578869$SG4.487518@newsfe03.iad>
In reply to#11413
Thorsten Kampe wrote:
> You're misunderstanding what people mean by "DOS prompt". They don't
> mean "this is the DOS command shell", they mean "this is DOS".

... yup, ... was helping my little sis with her iMac over the phone from 
four states away and had her open a terminal for some  magic... and it 
took her exactly 1.03 seconds to say, "Oh, the iMac has DOS installed in 
the utilities folder!"   :-O

... blondes...   :-}


(she tries hard, and actually has been learning, so, we keep trying...)







-- 
m harris

FSF  ...free as in freedom/
http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm

[toc] | [prev] | [next] | [standalone]


#11416

FromChris Angelico <rosuav@gmail.com>
Date2011-08-14 21:28 +0100
Message-ID<mailman.2282.1313353706.1164.python-list@python.org>
In reply to#11415
On Sun, Aug 14, 2011 at 9:20 PM, harrismh777 <harmar@member.fsf.org> wrote:
> ... yup, ... was helping my little sis with her iMac over the phone from
> four states away and had her open a terminal for some  magic... and it took
> her exactly 1.03 seconds to say, "Oh, the iMac has DOS installed in the
> utilities folder!"   :-O
>
> ... blondes...   :-}

Just to confuse things even further, it's not unlikely that a Mac or
Linux or Windows computer will have DOSBox installed. Is *that* DOS?
Technically no, but practically yes.

ChrisA

[toc] | [prev] | [next] | [standalone]


#11420

FromSeebs <usenet-nospam@seebs.net>
Date2011-08-14 22:27 +0000
Message-ID<slrnj4gip6.1r8v.usenet-nospam@guild.seebs.net>
In reply to#11416
On 2011-08-14, Chris Angelico <rosuav@gmail.com> wrote:
> Just to confuse things even further, it's not unlikely that a Mac or
> Linux or Windows computer will have DOSBox installed. Is *that* DOS?
> Technically no, but practically yes.

Depending on how you define "unlikely", I'd guess it is.

Assume that "unlikely" means roughly the equivalent of "if I were optimizing,
I'd use a compiler branch prediction hint at this point".  :)

-s
-- 
Copyright 2011, all wrongs reversed.  Peter Seebach / usenet-nospam@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.

[toc] | [prev] | [next] | [standalone]


#11436

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2011-08-14 19:14 -0700
Message-ID<mailman.2297.1313374502.1164.python-list@python.org>
In reply to#11415
On Sun, 14 Aug 2011 21:28:23 +0100, Chris Angelico <rosuav@gmail.com>
declaimed the following in gmane.comp.python.general:

> On Sun, Aug 14, 2011 at 9:20 PM, harrismh777 <harmar@member.fsf.org> wrote:
> > ... yup, ... was helping my little sis with her iMac over the phone from
> > four states away and had her open a terminal for some  magic... and it took
> > her exactly 1.03 seconds to say, "Oh, the iMac has DOS installed in the
> > utilities folder!"   :-O
> >
> > ... blondes...   :-}
> 
> Just to confuse things even further, it's not unlikely that a Mac or
> Linux or Windows computer will have DOSBox installed. Is *that* DOS?
> Technically no, but practically yes.
> 
	Depends... "DOS", to me, is just short for "Disk Operating
System"... I've source code (in a book) for K2FDOS, source code for
LS-DOS 6, and have used the AmigaDOS component of AmigaOS (granted --
AmigaDOS technically was the part of the OS that gave access to the I/O
system, and included the command line interpreter...).

	"DOS" does not automatically mean "MicroSoft DOS"...

	I have less experience with "MS-DOS" than I have with LS-DOS and
AmigaDOS.

	What most call "DOS" is, to me, merely a "command line interpreter"
(CLI).
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [next] | [standalone]


#11447

FromChris Angelico <rosuav@gmail.com>
Date2011-08-15 09:32 +0100
Message-ID<mailman.2.1313397150.27778.python-list@python.org>
In reply to#11415
On Mon, Aug 15, 2011 at 3:14 AM, Dennis Lee Bieber
<wlfraed@ix.netcom.com> wrote:
>        Depends... "DOS", to me, is just short for "Disk Operating
> System"... I've source code (in a book) for K2FDOS, source code for
> LS-DOS 6, and have used the AmigaDOS component of AmigaOS (granted --
> AmigaDOS technically was the part of the OS that gave access to the I/O
> system, and included the command line interpreter...).
>
>        "DOS" does not automatically mean "MicroSoft DOS"...

I would say that DOS can, in a Windows context, mean either MS-DOS or
a generic Disk Operating System. The latter sense is no more
appropriate to the CLI than the former; in a modern OS, the part that
truly "operates the disk" would be either the kernel or the hard disk
driver, depending on your point of view, and neither of those has any
sort of UI.

>        What most call "DOS" is, to me, merely a "command line interpreter"
> (CLI).

And that's really what we have. A shell. A CLI. A textual command
parser (as opposed to a graphical action system which is what most
GUIs are). It's more similar to a MUD than to an operating system -
first space-separated word is a verb, everything else is modifiers.

ChrisA

[toc] | [prev] | [next] | [standalone]


#11429

FromTerry Reedy <tjreedy@udel.edu>
Date2011-08-14 20:49 -0400
Message-ID<mailman.2293.1313369399.1164.python-list@python.org>
In reply to#11392
On 8/14/2011 10:30 AM, Nobody wrote:

> 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).

In particular, IDLE runs in a pythonw process and it executes user code 
in a separate pythonw process and usually uses a socket for the connection.

-- 
Terry Jan Reedy

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web