[Tutor] Tkinter query?
Dave S
pythontut at pusspaws.net
Wed Jul 13 13:28:23 CEST 2005
Hi all,
Im on the Tkinter GUI learning curve :-) . Its going quite well - im
reading O'reilly 'programming python' but I am unclear on the following
I understand the standard form ie ...
root = Tk()
test = button(root, text = ..........).pack()
etc
I also understand ....
independant_win = Toplevel(root)
But I do not understand where Frame fits in to this ... ie
from Tkinter import *
class Hello(Frame):
def __init__(self, parent=None):
Frame.__init__(self, parent)
self.pack()
Why not just use 'class Hello(root)' ? Or have I missed the point :-[
Dave
More information about the Tutor
mailing list