[Urwid] scrolling

Ian Ward ian at excess.org
Thu Jun 29 09:53:36 EDT 2006


James Mills wrote:
> I noticed though that the granuality of the get_input
> in urwid (or maybe even curses) isn't small enough, so
> I've implemented my event manager, irc client and user
> interface as threads.

You can configure the get_input delays with set_input_timeouts()
http://excess.org/urwid/reference.html#curses_display.Screen

I notice that you're using the curses library directly in your source, 
was that to try to reduce the delay in get_input()?  It shouldn't be 
necessary.

The ListBox widget also lets you scroll back through the text displayed. 
If you don't want your ListBox content to grow infinitely, have a look 
at making your own list walker class for the ListBox.  That way you have 
more control over what is displayed, and you can easily remove older 
items as new ones are created.

Ian




More information about the Urwid mailing list