[Urwid] How to get position and total number of lines in ListBox?

ok100 at lavabit.com ok100 at lavabit.com
Mon Apr 15 15:29:30 EDT 2013


Hello,

I have the following code:

http://bpaste.net/show/91579/

My question is, how to get the current scroll position and total number
of lines in the ui.listbox? I need this to implement scrolling to the
end of listbox (e.g with G key) and to display current position in the
statusbar (like in vim). Or is there some better way?

Thanks in advance
O





More information about the Urwid mailing list