Dominic LoBue wrote on 2010-01-21 02:17:
> On Wed, Jan 20, 2010 at 6:21 AM, Ian Ward <[email protected]> wrote:
>> Note that you can create a ListBox that never snaps to selectable
>> widgets like this:
>>
>> class NoSnapListBox(urwid.ListBox):
>>    def change_focus(self, *argl, **argd):
>>        argd['snap_rows']=0
>>        self.__super.change_focus(*argl, **argd)
...
> 
> And thank you for the tip on how to disable snapping as well, but
> that's rather non-obvious. I'd like to suggest a more obvious way to
> toggle snapping on and off though.
> 

You're right, it's not very user-friendly.

Right now the scrolling behaviour is completely tied to the ListBox
class.  If it were separate then those settings would be part of a new
class that just makes decisions about scrolling.  It's on my list of
future plans, not sure when I'll get to it, though.

Ian

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

Reply via email to