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 _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
