On Fri, 29 Jul 2011 22:37:16 -0600, Aaron Meurer <[email protected]> wrote:
> Andreas, how should I do this?  I can either manually wrap text, or I
> can change it to use some built-in urwid object that does wrapping
> automatically.  The former would be easier, as it's kind of hard-coded
> to have plain text rather than urwid.Text, but maybe you can think of
> a reason why doing urwid.Text (or whatever) would be better.

If you think you can hack up wrapping quickly, go for it. I think I
opted for 'make my own widget' simply because it allowed me to use
multiple attributes easily, without having to muck around with multiple
objects and a container around them.

> By the way, does this UI design sound sound?  There is a new option in
> the preferences, "wrap variables", which is False by default.  If the
> user sets it to True, all variables will be line-wrapped.

I'm not sure it makes sense to have an option here. It's likely
something that everybody would want.

> Furthermore, the user can change this on a per-variable basis by
> selecting the variable and either pressing "w" or pressing "Enter" and
> changing the check-box in the resulting dialog box.

See above. Or can you think of a good reason to not wrap? I suppose the
right option would be to 'truncate output', rather than turn 'wrap' on
or off.

Andreas

Attachment: pgpXte5ZasCjc.pgp
Description: PGP signature

_______________________________________________
Pudb mailing list
[email protected]
http://lists.tiker.net/listinfo/pudb

Reply via email to