[Edu-sig] Tkinter window behind IDLE under Mac OS X

Andre Roberge andre.roberge at gmail.com
Wed Jan 31 01:37:40 CET 2007


Possible apologies on two accounts:
1. I don`t have an answer to your query (as a non-Mac user)
2. I want to suggest a totally different alternative which *might* be
appropriate, especially since you are teaching non-CS majors...

On 1/30/07, Peter Drake <drake at lclark.edu> wrote:
> Forgive me if this isn't the appropriate place to post...
>
> I'm trying to write a very simple set of graphics functions for use
> by my (non-CS-major) students. Playing with Tkinter, I wrote this:
>

Trying to save you the trouble of writing your own simple set of
graphics functions...

Have you had a look at Crunchy?
http://code.google.com/p/crunchy/

It's still in development.  However, it does have built-in graphics
functions available.
If you're curious, start it (it should launch your webbrowser - only
tested with Firefox, not Safari), then go to the menu Tutorials ->
Using Crunchy (on top), and from the left menu that will be displayed,
select Graphics: drawing.

Also, you won't have a console window ;-)

If you find this totally off-topic, please accept my apologies.

André



> from Tkinter import *
>
> c = Canvas()
> c.pack()
> c.create_line(0, 0, 20, 30)
> mainloop()
>
> It does, as hoped, produce a window with a little diagonal line in
> it. The problem is that this window pops up BEHIND the IDLE window.
> Googling around, I've found several other people who have had this
> problem (especially under Mac OS X), but no solutions. Is there a
> workaround?
>
> I'd just as soon get rid of the "Console" window, too, but that's
> less important.
>
> Thanks in advance for any help you can offer,
>
> Peter Drake
> Assistant Professor of Computer Science
> Lewis & Clark College
> http://www.lclark.edu/~drake/
>
>
>
> _______________________________________________
> 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