[Urwid] Rendering standout attribute across entire Columns widget

Jacob Courtneay jacob at sporkexec.com
Wed Aug 31 23:35:54 EDT 2011


Here you go:
https://github.com/sporkexec/urwid/commits/AttrMap_callable

It's not exposed in decoration.py yet because I don't know if you would prefer 
changing AttrMap or adding another class.

The idea is that you could do something like AttrMap(w, lambda attr: 
'prefix.'+attr) to put attributes in a namespace. Or you could force all 
children widgets to use an attribute, or whatever else anybody comes up with. 
For what it's worth, this would also remove the requirement that attributes be 
hashable.

-- Jacob




More information about the Urwid mailing list