On Thu, Nov 15, 2012 at 2:27 AM, Keith Dart <[email protected]> wrote:
> Ok, new, fixed version. Sorry about the last one.

Thanks Keith.

There are a few issues I notice: You assume the length of a string is
the same as its width on screen (not true for wide or combining
characters), render fails if the screen is too narrow, and there's no
handling of mouse events.

For the last two It would be better to let existing widgets handle
your rendering and mouse events (like Columns, Text and Button) by
subclassing WidgetWrap.  Have you seen the new tutorial examples?

For the first you can use Text.pack() to calculate the "ideal" width
of a piece of text.

Ian

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

Reply via email to