[Urwid] Auto-scroll ListBox
abhinavsingh at ymail.com
Wed Jul 31 16:54:22 EDT 2013
Nevermind, with urwid==1.1.1 this can be achieved using:
abox.set_focus(len(abox.body) - 1)
On 31-Jul-2013, at 7:52 PM, Abhinav Singh <abhinavsingh at ymail.com> wrote:
> Looking for auto-scroll solution on list boxes, I came across following mail thread: http://lists.excess.org/pipermail/urwid/attachments/20100922/b79889b9/attachment.py
> On similar lines here is the piece of code I m trying:
> abox.set_focus(abox.body.focus + 1)
> This results in "No widget at position 1" error and application just exits.
> If I comment out the 2nd line of code (i.e. line where I do set_focus), application continues to work and list boxes continue to update. However, they don't scroll to the bottom.
> Can someone point me to what am I doing wrong here?
> PS: I m using urwid==1.1.1
> Urwid mailing list
> Urwid at lists.excess.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Urwid