[Urwid] Resizing windows in urwid: how small is too small?
Ian Ward
ian at excess.org
Sun May 13 14:11:43 EDT 2007
Ian Ward wrote:
> James Reeves wrote:
>> The solution, I expect, would be to allow canvases of zero area to be
>> rendered; or perhaps for container widgets (such as Columns, Piles,
>> Frames etc.) not to render any widget if its size has a 0 in the width
>> or height column. This is based on the principle that even if the user
>> shrinks down the terminal window to such a small size that he cannot
>> even see half the widgets, it is better to keep the program running and
>> not to show those widgets, then to panic and exit the application.
>>
>> Are there any plans to implement such a change already? Or is there any
>> reason why this is a really bad idea?
>
> I am planning to fix this problem in the container widgets as you
> describe. To be more specific, box widgets need to cope with column or
> row sizes of zero (and produce canvases sized that way), flow widgets
> and fixed widgets are unchanged.
>
Hello,
please try the latest svn version to see if it works for you now.
Changeset 137 allows box widgets to render 0-row canvases, which should
fix your problem.
Ian
More information about the Urwid
mailing list