Quoting Ian Ward (2011-12-15 12:49:54) >On 11-12-14 05:08 PM, Patrick Totzke wrote: >> Hi Ian, >> you were right: I was focussing an empty Pile. Not adding >> this widget fixes the issue for me. >> I wasn't able to extract a small example however. My interface >> is quite complex. I know that i have something like: >> >> Frame: body -> >> Listbox: >> Pile of Text (nonempty) >> Pile of Text (empty) >> Text >> >> everything is selectable. >> If you scroll down so that only the last Text is visible >> and then scroll up again, focussing the empty Pile above, >> the error occurs. If you focus the first Pile (via pageup) >> all is ok. Strangely, if the first Pile is focussed and >> you hit 'down', the empty Pile either doesn't get selected >> or can deal with this fine: no exception is raised. >> >> I hope this helps, >> thanks for your support! >> /p >> > >I've pushed some changes that address some bugs I found with ListBox >handling of 0-height widgets, would you try your code again with the >latest from hg/git, and if it still fails post the full traceback.
I tested my (empty Pile containing) code again with upstream master as you suggested. The exception doesn't get raised. Thansk for the fix. /p _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
