Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #42657 > unrolled thread

Re: Tkinter

Started byJason Swails <jason.swails@gmail.com>
First post2013-04-03 08:05 -0400
Last post2013-04-03 08:05 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Tkinter Jason Swails <jason.swails@gmail.com> - 2013-04-03 08:05 -0400

#42657 — Re: Tkinter

FromJason Swails <jason.swails@gmail.com>
Date2013-04-03 08:05 -0400
SubjectRe: Tkinter
Message-ID<mailman.51.1364990763.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Tue, Apr 2, 2013 at 10:04 PM, Renato Barbosa Pim Pereira <
renato.barbosa.pim.pereira@gmail.com> wrote:

> Thanks for the advices, I need now one scrollbar to roll under screen, I
> created the scrollbar but cant roll, please help me on this.
>
> http://pastebin.com/L6XWY6cm
>


You need to bind your scrollbar to a particular action.  It does not roll
because you never told it what 'rolling' should do.  That said, you need to
bind your scrollbar command to a widget that actually supports scrolling.
 According to [1], your options are the Listbox, Text, Canvas, and Entry
widgets.  What that means is that you will need to replace your Frame
widget with a Canvas widget (or embed a Canvas in your Frame, although with
your existing code that latter approach does not serve much purpose).  Then
bind your scrollbar command to the xview method of your Canvas instance (or
the yview method of your Canvas instance if you want to scroll vertically).

HTH,
Jason

[1] http://effbot.org/zone/tkinter-scrollbar-patterns.htm

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web