[Edu-sig] Interactive Tkinter graphics under IDLE

Peter Drake drake at lclark.edu
Tue Feb 6 20:03:42 CET 2007


Okay, so I've got a simple system worked up that allows students  
(these are "CS0" non-CS-majors) to manipulate objects with commands  
in the IDLE command window. The file is attached.

The next thing I'd like to do is define a function mouse() that  
starts the main loop, waits for a mouse click, stops the main loop,  
and returns the coordinates of the mouse click. Any suggestions?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: graphics.py
Type: text/x-python-script
Size: 1891 bytes
Desc: not available
Url : http://mail.python.org/pipermail/edu-sig/attachments/20070206/815a26bc/attachment.bin 
-------------- next part --------------

Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/






More information about the Edu-sig mailing list