Two Tkinter questions

dsavitsk dsavitsk at e-coli.net
Fri May 17 20:16:38 EDT 2002


as for the 2nd one, bind the scrollbar to a frame and place the text widgets
therein.  i can't help o the other as i quit tkinter a while back.

-d

"Mike Callahan" <mcalla at insightbb.com> wrote in message
news:MKhF8.27549$AU.39360 at sccrnsc02...
> Question #1
>
> I want a text widget to completely fill its space. I can do this in
tkinter
> using the pack geometery manager:
> text.pack(fill='both', expand=1)
> If I resize the window, the the text widget continues to fill the window,
> however if I use grid:
> text.grid(sticky='nsew')
> the text widget stays the same size if I make the window larger. Can't
grid
> do the same thing that pack can do?
>
> Question #2
>
> I want to make a horizontal scroll bar scroll two text widgets at the same
> time. I know how to connect a scrollbar to a text widget, but is there a
way
> to connect one scrollbar to two widgets?
>
> Thanks,
> Mike Callahan
>
>
>





More information about the Python-list mailing list