[Urwid] [bugreport] container.py
ian at excess.org
Thu Dec 15 07:49:54 EST 2011
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 ->
> Pile of Text (nonempty)
> Pile of Text (empty)
> 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!
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.
More information about the Urwid