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
.__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
Not the frame but the container widget that is the parent of the widget
on which you call `grid
What exactly is meant by widgets that layout themselves- what is the
right way to do this?
He means you can't control it at creation time, you would have to call
w.pack_configure() if you did not like the default options. There are
times however when you DO want a widget to pack itself..
from
PS: Check here
http://effbot.org/tkinterbook/
There are three geometry managers pack, place, and grid. Be sure
to learn the pros and cons of all three.
--
http://mail.python.org/mailman/listinfo/python-list
(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
Not the frame but the container widget that is the parent
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
On Tue, 03 Mar 2009 18:06:56 -0800, chuck wrote:
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