Re: What does self.grid() do?

2009-03-10 Thread chuck
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

Re: What does self.grid() do?

2009-03-04 Thread chuck
.__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

Re: What does self.grid() do?

2009-03-04 Thread r
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

Re: What does self.grid() do?

2009-03-04 Thread r
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

Re: What does self.grid() do?

2009-03-04 Thread Marc 'BlackJack' Rintsch
(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

What does self.grid() do?

2009-03-03 Thread 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

Re: What does self.grid() do?

2009-03-03 Thread Marc 'BlackJack' Rintsch
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