What does self.grid() do?
chuck
charles.leviton at gmail.com
Tue Mar 3 21:06:56 EST 2009
I am learning python right now. In the lesson on tkinter I see this
piece of code
from Tkinter import *
class MyFrame(Frame):
def __init__(self):
Frame.__init__(self)
self.grid()
My question is what does "self.grid()" do? I understand that the grid
method registers widgets with the geometry manager and adds them to
the frame
But in this case am I adding the frame to the frame? Not able to
understand the response from my class discussion board, hence posting
here.
THanks!
More information about the Python-list
mailing list