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