[Urwid] Rendering standout attribute across entire Columns widget

Ian Ward ian at excess.org
Thu Sep 1 11:09:30 EDT 2011


Ian Ward wrote on 2011-09-01 10:10:
> 1. Canvases would start remembering the order that display attributes
> were applied
...
> 2. Screen palette lookups would match tuples of display attributes in
> order from last to first, stopping when no further match is found.
...
> This should cleanly solve the common "in focus" case.
> 
> It doesn't go as far as allowing arbitrary combinations like adding
> standout to any display attribute.  You could do that with a list
> comprehension in the palette definition, similar to the "prefix."+attr
> case you site above.

Actually, we'd need one more change:

3. AttrMap gets a special key value for its dictionaries '*' that will
apply to all display attributes.

Ian



More information about the Urwid mailing list