[Edu-sig] mac python graphics

John Zelle john.zelle at wartburg.edu
Wed Dec 7 19:19:38 CET 2011


Andrew,

We have numerous students and faculty here who are successfully using graphics.py with OSX Lion. The main problem for them was getting the ActiveState Tcl/Tk fix, but it sounds like you have already done that. If IDLE is running, there is no reason that the graphics package should give you difficulties.

I have two quick suggestions. First make sure you have the latest version of the graphics library available from my python page: http://mcsp.wartburg.edu/zelle/python. You probably do have it, as it has not been updated in quite a while. The important thing is that you need the unthreaded iteration of the library.

Second, make sure that every graphics program shuts down properly by executing window.close(). If your processes are hanging up on program termination, this could be the issue. It is not sufficient to simply have the Python program quit.

If neither of these addresses your issue, then I would appreciate it if you would send me a slightly more detailed report letting me know exactly what version of python and Tcl/Tk you are running and providing a simple example program that causes freeze up along with a description of exactly how it locks up.

Cheers,

--John

John Zelle, PhD
Professor of Computer Science
Wartburg College

________________________________
From: edu-sig-bounces+john.zelle=wartburg.edu at python.org [edu-sig-bounces+john.zelle=wartburg.edu at python.org] on behalf of Andrew Harrington [aharrin at luc.edu]
Sent: Wednesday, December 07, 2011 11:45 AM
To: edu-sig at python.org
Subject: [Edu-sig] mac python graphics

I just got my first Mac.  I know issues with Mac graphics have been discussed before, but I'm not sure what is relevant with OSX Lion.

With the active state Tcl and the standard python.org<http://python.org> python and idle appears fine.
Still if I try running a Zelle graphic program inside or outside idle I get a freeze.

The massive installation through MacPorts, that uses X11 for graphics makes my Zelle graphics library Tk based programs  work fine, but the X11 version of Idle has many of the common keyboard shortcuts not working, and is (intensionally) not the standard Apple menu setup.

What am I missing?

Thanks,
--
Dr. Andrew N. Harrington
  Computer Science Department
  Loyola University Chicago
Lakeshore office in the Math Department: 205 Loyola Hall
http://www.cs.luc.edu/~anh
Phone: 773-915-7999
Fax:    312-915-7998
aharrin at luc.edu<mailto:aharrin at luc.edu>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20111207/90dd9d2c/attachment.html>


More information about the Edu-sig mailing list