(help)Tkinter, how to make labels scrolling?
Ren Wenshan
renws1990 at gmail.com
Tue Dec 29 08:34:42 EST 2009
It works, Thank you very much.
On Dec 28, 6:38 pm, Francesco Bochicchio <bieff... at gmail.com> wrote:
>
> Hi,
>
> if you want to realize an 'animated scrolling' effect, you need to
> move the scrolling code out of the start callback
> in a function which is called periodically by the GUI mainloop. In
> Tkinter, you can do that using Toplevel.after to
> have a fuction be called after a timeout. Here is your 'meal' class
> with the modifications needed to make an
> 'animated scroll'. I renamed your start method as _scroll_text and
> wrote new start and stop methods to start and stop
> the scrolling.
>
> Ciao
> -----
> FB
More information about the Python-list
mailing list