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.

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.
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.

Aaron Meurer

On Thu, Jul 28, 2011 at 2:11 AM, Aaron Meurer <[email protected]> wrote:
> This should be straightforward.  urwid.Flowwidget, from which
> VariableWidget derives, is described by its docstring as the "base
> class of widgets that determine their rows from the number of columns
> available."  So it shouldn't be too hard to do wrapping.  I'll look
> into it.  I'll be touching near that part of the code anyway when I
> implement custom stringifiers tomorrow.  Also, I remembered that this
> is a feature that I've wanted before too.
>
> Aaron Meurer
>
> On Thu, Jul 28, 2011 at 1:53 AM, Sundance <[email protected]> wrote:
>> On Wed, Jul 27, 2011 at 09:59:39PM -0600, Aaron Meurer wrote:
>>
>>> And for what it's worth, I kind of prefer it the way it is in my
>>> branch, with just keyboard shortcuts.
>>
>> Whoa, thank you Aaron, this rocks! It's exciting to see one of the most 
>> useful
>> Python dev tools out there get even better.
>>
>> While we're talking PuDB improvements, might I petition for line wrapping in
>> the variables box? That's one of the few things I miss in PuDB. I feel a 
>> little
>> sheepish asking for this when I could dive in the code and implement it 
>> myself,
>> but I have to admit it will probably be done much quicker if I ask someone 
>> who
>> already has a good grasp of the code.
>>
>> Ta,
>>
>> -- S.
>>
>> _______________________________________________
>> Pudb mailing list
>> [email protected]
>> http://lists.tiker.net/listinfo/pudb
>>
>

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

Reply via email to