[Tkinter-discuss] horizontal scrollbar in frame with text widget

spooky.ln at tbs-software.com spooky.ln at tbs-software.com
Sat Jan 1 20:56:57 CET 2011

Hi all,
I’m new on the list. Now moving from GTK to Tkinter.
I have question about packing in frame.


frame2 = Frame(self)
hScrollbar = ttk.Scrollbar(frame2, orient=HORIZONTAL)
self.text = Text(frame2,
                        font='Courier 9',
self.text.pack(fill=BOTH, expand=1)
hScrollbar.pack(side=BOTTOM, fill=X)
frame2.pack(side=LEFT, fill=BOTH, expand=1)

in this little example i have defined hScrollbar.
all working fine until i resize main window when frame2 is.
if i resize window under 24lines in Text is visible scrollbar dissapear.

is this wrong packing ? thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20110101/93596b63/attachment.html>

More information about the Tkinter-discuss mailing list