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

2007-01-31 Thread Peter Drake
Thanks for all the suggestions, everyone! Some responses: DrPython: tempting, because I've used DrScheme in the past. It seems a bit of a pain to install X11, wxPython, and DrPython, though. I'd like these students to be able to do work on their own machines in addition to in the lab. Crun

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

2007-01-31 Thread kirby urner
On 1/30/07, Peter Drake <[EMAIL PROTECTED]> wrote: I tried running this directly from a terminal: #!/usr/local/bin/python from Tkinter import * c = Canvas() c.pack() c.create_line(0, 0, 20, 30) mainloop() Again, the Tk window pops up behind the terminal. c = Canvas() already creates a Tk wi

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

2007-01-30 Thread Rob Malouf
Hi, Are you using pythonw (rather than python) to start the interpreter? --- Rob Malouf <[EMAIL PROTECTED]> Department of Linguistics and Asian/Middle Eastern Languages San Diego State University On Jan 30, 2007, at 4:10 PM, Peter Drake wrote: > I tried running this directly from a terminal: >

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

2007-01-30 Thread Andre Roberge
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 <[EMAIL PROTECTED]> wrote: > Forgive me if t

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

2007-01-30 Thread Ernesto Costa
Hi, The problem is related with using IDLE because it does not uses processes or threads. In Mac OS X I installed X11 and use DrPython (http://drpython.sourceforge.net/) or TexMate (http:// macromates.com/). They both work well. DrPython is great for teaching and TexMate is a terrific gene

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

2007-01-30 Thread Peter Drake
I tried running this directly from a terminal: #!/usr/local/bin/python from Tkinter import * c = Canvas() c.pack() c.create_line(0, 0, 20, 30) mainloop() Again, the Tk window pops up behind the terminal. What next? Is there some command to bring the window to the front? Peter Drake Assistant Pr

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

2007-01-30 Thread kirby urner
Hi Peter -- In general, developing with Tkinter from inside of IDLE doesn't work well, because IDLE itself is working a Tk mainloop and the two don't play well together (they both want to be "main"). You can still use IDLE as your text editor if you invoke your Tkinter-using code in another proc

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

2007-01-30 Thread Peter Drake
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: from Tkinter import * c = Canvas() c.pack() c.create_line(0, 0, 20, 30) mainloop() It does, as hoped