Re: Tkinter Confusion

2008-02-18 Thread MartinRinehart
Many thanks to all. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Confusion

2008-02-18 Thread 7stud
On Feb 18, 1:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Most of the other questions have already been answered, so I'll tackle > this one: > > On Feb 17, 8:36 pm, [EMAIL PROTECTED] wrote: > > > Google's great, but it has no truth meter. Do I inherit from Frame? Or > > is that a big mis

Re: Tkinter Confusion

2008-02-18 Thread [EMAIL PROTECTED]
Most of the other questions have already been answered, so I'll tackle this one: On Feb 17, 8:36 pm, [EMAIL PROTECTED] wrote: > Google's great, but it has no truth meter. Do I inherit from Frame? Or > is that a big mistake. (Both positions repeated frequently.) Inherit from Frame if you want you

Re: Tkinter Confusion

2008-02-17 Thread 7stud
[EMAIL PROTECTED] wrote: > Do I use > Tk() or toplevel()? (Support for both and if a cogent explanation of > the differences exists, I didn't find it.) > If you close the window created by Tk(), the program terminates. If you close a window created by Toplevel() only that window closes. The Tk()

Re: Tkinter Confusion

2008-02-17 Thread 7stud
On Feb 17, 12:36 pm, [EMAIL PROTECTED] wrote: > Everything I've read about Tkinter says you create your window and > then call its mainloop() method. But that's not really true. This is > enough to launch a default window from the console: > > >>>from Tkinter import * > >>>foo = Tk() > You shouldn

Re: Tkinter Confusion

2008-02-17 Thread Marc 'BlackJack' Rintsch
On Sun, 17 Feb 2008 11:36:25 -0800, MartinRinehart wrote: > Everything I've read about Tkinter says you create your window and > then call its mainloop() method. But that's not really true. This is > enough to launch a default window from the console: > from Tkinter import * foo = Tk() D

Re: Tkinter Confusion

2008-02-17 Thread Sam Garson
I'm just a beginner, but I think I understand some of this: The mainloop is not there to build the window, it is there to check for events, i.e. continually refresh all the widgets. Without, any events you bind will not be detected. Tk() is the first window you make, any after that are toplevel()s.

Tkinter Confusion

2008-02-17 Thread MartinRinehart
Everything I've read about Tkinter says you create your window and then call its mainloop() method. But that's not really true. This is enough to launch a default window from the console: >>>from Tkinter import * >>>foo = Tk() Google's great, but it has no truth meter. Do I inherit from Frame? Or