<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Andrew,<br>
<br>
The only real disadvantage of the non-threaded (current) version is that it does not play as well with the IDLE shell when demonstrating graphics interactively. But there are numerous advantages of the non-threaded version including that it works on OSX :-).
 I also like that I can have my students use Tkinter dialogs for opening files or getting simple inputs in graphics programs.<br>
<br>
As far as documenting the complete GraphWin API, I've always been a bit lazy about moving things into the official API, just because I want to keep the API really small so that it doesn't overwhelm first-time users of graphics. There have always been a few
 undocumented &quot;goodies&quot; lurking in the module. When I decide that I _have_ to have them for certain class projects, then they make their way into the official API. I'm very conservative, because I don't want to remove things (for backward compatibility), and
 I consider the API now to be at the limit of what I can expect my CS1 students to reasonably master.<br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;"><span style="font-family: Courier New;">John Zelle, PhD<br>
Professor of Computer Science<br>
Wartburg College<br>
<br>
</span></div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF382856"><font color="#000000" face="Tahoma" size="2"><b>From:</b> anharrington@gmail.com [anharrington@gmail.com] on behalf of Andrew Harrington [aharrin@luc.edu]<br>
<b>Sent:</b> Wednesday, December 07, 2011 2:27 PM<br>
<b>To:</b> John Zelle<br>
<b>Cc:</b> edu-sig@python.org<br>
<b>Subject:</b> Re: [Edu-sig] mac python graphics<br>
</font><br>
</div>
<div></div>
<div>Thanks, Juhn. &nbsp;I had somehow missed the latest version.
<div>What complications does the single threading bring?<br>
<br>
<div class="gmail_quote">On Wed, Dec 7, 2011 at 12:19 PM, John Zelle <span dir="ltr">
&lt;<a href="mailto:john.zelle@wartburg.edu" target="_blank">john.zelle@wartburg.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
Andrew,<br>
<br>
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.<br>
<br>
I have two quick suggestions. First make sure you have the latest version of the graphics library available from my python page:
<a href="http://mcsp.wartburg.edu/zelle/python." target="_blank">http://mcsp.wartburg.edu/zelle/python.</a> 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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
Cheers,<br>
<br>
--John<br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;"><span style="font-family: Courier New;">John Zelle, PhD<br>
Professor of Computer Science<br>
Wartburg College<br>
<br>
</span></div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr>
<div style="direction: ltr;"><font color="#000000" face="Tahoma" size="2"><b>From:</b> edu-sig-bounces&#43;john.zelle=<a href="mailto:wartburg.edu@python.org" target="_blank">wartburg.edu@python.org</a> [edu-sig-bounces&#43;john.zelle=<a href="mailto:wartburg.edu@python.org" target="_blank">wartburg.edu@python.org</a>]
 on behalf of Andrew Harrington [<a href="mailto:aharrin@luc.edu" target="_blank">aharrin@luc.edu</a>]<br>
<b>Sent:</b> Wednesday, December 07, 2011 11:45 AM<br>
<b>To:</b> <a href="mailto:edu-sig@python.org" target="_blank">edu-sig@python.org</a><br>
<b>Subject:</b> [Edu-sig] mac python graphics<br>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
<div>I just got my first Mac. &nbsp;I know issues with Mac graphics have been discussed before, but I'm not sure what is relevant with OSX Lion.
<div><br>
</div>
<div>With the active state Tcl and the standard <a href="http://python.org" target="_blank">
python.org</a> python and idle appears fine. &nbsp;</div>
<div>Still if I try running a Zelle graphic program inside or outside idle I get a freeze.</div>
<div><br>
</div>
<div>The massive installation through MacPorts, that uses X11 for graphics makes my Zelle graphics library Tk based programs &nbsp;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.<br clear="all">
<div><br>
</div>
<div>What am I missing?</div>
<div><br>
</div>
<div>Thanks,</div>
-- <br>
Dr. Andrew N. Harrington<br>
&nbsp; Computer Science Department&nbsp;
<div>&nbsp; Loyola University Chicago<br>
Lakeshore office in the Math Department: 205 Loyola Hall<br>
<a href="http://www.cs.luc.edu/~anh" target="_blank">http://www.cs.luc.edu/~anh</a><br>
Phone: <a href="tel:773-915-7999" value="&#43;17739157999" target="_blank">773-915-7999</a><br>
Fax:&nbsp; &nbsp; <a href="tel:312-915-7998" value="&#43;13129157998" target="_blank">312-915-7998</a><br>
<a href="mailto:aharrin@luc.edu" target="_blank">aharrin@luc.edu</a><br>
<br>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Dr. Andrew N. Harrington<br>
&nbsp; Computer Science Department&nbsp;
<div>&nbsp; Loyola University Chicago<br>
Lakeshore office in the Math Department: 205 Loyola Hall<br>
<a href="http://www.cs.luc.edu/~anh" target="_blank">http://www.cs.luc.edu/~anh</a><br>
Phone: 773-915-7999<br>
Fax:&nbsp; &nbsp; 312-915-7998<br>
<a href="mailto:aharrin@luc.edu" target="_blank">aharrin@luc.edu</a><br>
<br>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>