By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 2,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

python vs pythonw

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.