On Wed, Jan 20, 2010 at 6:21 AM, Ian Ward <[email protected]> wrote: > Dominic LoBue wrote on 01/20/2010 05:33 AM: >> On Mon, Jan 18, 2010 at 8:37 AM, Ian Ward <[email protected]> wrote: >>> Dominic LoBue wrote on 11/24/2009 10:42 PM: >>>> Ian, >>>> >>>> I found a weird bug with listboxes snapping to an odd location in the >>>> middle of a large selectable widget. >>> ... >>>> Attached is a patch which fixes the problem for me. >>> I've prepared an alternate fix for 0.9.9.1, would you please test and >>> confirm that my fix works for you (though not exactly the same way.) >>> >>> hg clone https://excess.org/hg/urwid-0.9.9/ >> >> Ian, >> >> The fix is not working. >> >> To be fair that might be because I had to modify my test case as I had >> completely forgotten how to replicate the bug. > > I've updated my patch, try pulling again. I am also having trouble > recreating the original problem, but I wanted to adjust this ListBox > behaviour anyway. Just let me know that it isn't jumping to strange > places in the middle of widgets for you. > > 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) > > Ian > > _______________________________________________ > Urwid mailing list > [email protected] > http://lists.excess.org/mailman/listinfo/urwid >
Ian, That fixed it.! 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. -- Dominic LoBue _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
