On Wed, Sep 11, 2013 at 8:14 PM, Ian Ward <[email protected]> wrote:
> Sorry I didn't see your earlier posts (spam filtering problem on my
> end) but you're right, the best thing to do is have separate Text
> widgets and use a ListBox.

Awesome, now that you pointed me in the right direction, I was able to
get the exact behavior I wanted:

    import urwid

    number_list = [urwid.Text(str(i)) for i in xrange(300) ]
    number_list.reverse()

    stackwalker= urwid.SimpleListWalker(number_list)
    stackwalker.set_focus(len(number_list) -1)
    stack = urwid.ListBox(stackwalker)

    loop = urwid.MainLoop(stack).run()

I will add some code to my app to disable scrolling, but this is is
pretty much what I wanted.

Thanks!

_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to