468,790 Members | 1,886 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,790 developers. It's quick & easy.

python vs pythonw

New to mac. I have leopard. What's the difference between python and
pythonw? So far (which isn't very far) I can't tell the difference.

I have a small application using TKinter that I was working on under
Linux. Both python and pythonw run it, but on both it "stops
responding" (pinwheel of death) when I touch the vertical scrollbar.

Thanks,

John Velman
Nov 30 '07 #1
3 39060
New to mac. I have leopard. What's the difference between python and
pythonw? So far (which isn't very far) I can't tell the difference.
IIUC, pythonw is linked with the WindowManager library, so it can do
GUI operations; python can't.
I have a small application using TKinter that I was working on under
Linux.
X11 Tk or Aqua Tk? If Aqua Tk, this would contradict to my theory above.

Regards,
Martin
Nov 30 '07 #2
Ant
On Nov 30, 3:30 am, John Velman <vel...@cox.netwrote:
New to mac. I have leopard. What's the difference between python and
pythonw? So far (which isn't very far) I can't tell the difference.

I have a small application using TKinter that I was working on under
Linux. Both python and pythonw run it, but on both it "stops
responding" (pinwheel of death) when I touch the vertical scrollbar.
On Windows, python runs in console mode (and pops up a console window
if you're not executing the script from a console already), pythonw
runs the script as a background process. I'd imagine that it is the
same for the Mac, and I shouldn't think it has anything to do with
your problem here.

--
Ant.
Nov 30 '07 #3
has
On 30 Nov, 06:16, "Martin v. Lwis" <mar...@v.loewis.dewrote:
New to mac. I have leopard. What's the difference between python and
pythonw? So far (which isn't very far) I can't tell the difference.

IIUC, pythonw is linked with the WindowManager library, so it can do
GUI operations; python can't.
True for Python 2.3.x and earlier. This limitation went away in 2.4,
however, and pythonw is now kept around solely for compatibility with
older scripts that still refer to it.
HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
Nov 30 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Thomas Aanensen | last post: by
6 posts views Thread by PhysicsGenius | last post: by
8 posts views Thread by DavidHolt | last post: by
17 posts views Thread by Paul Rubin | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
6 posts views Thread by Andrew Burton | last post: by
5 posts views Thread by Ron Garret | last post: by
1 post views Thread by Tim Rowe | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.