C
chuck
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!
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!