What does self.grid() do?

chuck charles.leviton at gmail.com
Wed Mar 4 03:06:56 CET 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):

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


More information about the Python-list mailing list