[Edu-sig] Interactive Tkinter graphics under IDLE

Peter Drake drake at lclark.edu
Wed Feb 7 00:05:48 CET 2007


I should probably send this to the entire list...

On Feb 6, 2007, at 3:04 PM, Peter Drake wrote:

> Yes, and you're the third person to have suggested it today. (Nice  
> book, by the way!)
>
> Three things prevent me from using your package as-is:
>
> 1) The graphics window appears BEHIND the Console window (which in  
> turn appears behind the IDLE window).
>
> 2) Once the main loop starts, you can't enter new commands into the  
> IDLE shell.
>
> 3) It is object-oriented, confusing students with the combination  
> of regularFunctions() and object.methods(). I'd just as soon avoid  
> this if possible.
>
> If anyone can direct me to a way around the first two problems I  
> could, of course, write wrapper functions to deal with the third.
>
> Thanks,
>
> Peter Drake
> Assistant Professor of Computer Science
> Lewis & Clark College
> http://www.lclark.edu/~drake/
>
>
>
>
> On Feb 6, 2007, at 2:23 PM, John Zelle wrote:
>
>> Hi Peter,
>>
>> Just a quick question for you. I am wondering if you have checked  
>> out the
>> simple graphics package that I built on top of Tkinter for doing  
>> these sorts
>> of simple manipulations. It's also name graphics.py. If you  
>> haven't seen it,
>> you can check it out at: http://mcsp.wartburg.edu/zelle/python.
>> It's probably that case that it doesn't meet your needs, but if it  
>> does it
>> would keep you from aving to "reinvent the wheel."
>>
>> --John
>>
>>
>>
>> On Tuesday 06 February 2007 1:03 pm, Peter Drake wrote:
>>> 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?
>>
>> -- 
>> John M. Zelle, Ph.D.             Wartburg College
>> Professor of Computer Science    Waverly, IA
>> john.zelle at wartburg.edu          (319) 352-8360
>> _______________________________________________
>> Edu-sig mailing list
>> Edu-sig at python.org
>> http://mail.python.org/mailman/listinfo/edu-sig
>


More information about the Edu-sig mailing list