[Tutor] Re: horizontal scrollbars

Abel Daniel abli at freemail.hu
Sat Oct 2 14:21:18 CEST 2004

Ajay  writes:

> i cant seem to get my scrollbars right. i'd like one vertical and one
> horizontal. vertical is coming fine. but horizontal also gets displayed as
> a vertical

You need to set the 'orient' option of the Scrollbar, like this:

  h_scrollbar = Scrollbar(self.topAgreements, orient=HORIZONTAL)

Note that there is a really good tkinter reference at 
(or http://www.nmt.edu/tcc/help/pubs/tkinter/ in html format)

Abel Daniel

Its a good thing you included the code, but next time try to edit the
code so that can be run after a simple copy-paste. That is, its
self-contained. For example your code dies with a 
NameError: name 'self' is not defined
Making sure that the example code you include exhibits exactly the
same problem you are asking about (and not someting else), helps us
answer your question faster, and more accurate. In addition, you might
even find the solution while you are making the problematic code
(Of course, this time this didn't make much difference, but still. :) )

More information about the Tutor mailing list