Re: What does self.grid() do?

2009-03-10 Thread chuck
on 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() &

Re: What does self.grid() do?

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

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 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.. fr

Re: What does self.grid() do?

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

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() &g

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 registe