Florian Kanngiesser wrote on 2011-04-11 05:24:
> Hi,
> 
> I'm trying to change the background colour of the edit field in an 
> urwid.Edit Widget. My problem atm is that if I just assign my edit field 
> to an attribute map it changes both: the caption and the edit part 
> itself and I dont know if it is possible to just change the attributes 
> of the edit part of the edit field and leave the caption untouched.
> Is something like that possible and if so how? (Right now I'm figuring 
> out a workaround with a text widget and an edit field without caption 
> but that doesnt seem to be the most correct way)
> Thanks in advance.

Hi Florian,

The tour.py example program does this.  See the definition of
text_edit_cap1:

    http://excess.org/urwid/browser/tour.py#L72

and how it's used with the AttrWrap (the old, more limited version of
the AttrMap widget):

    http://excess.org/urwid/browser/tour.py#L166

Ian

_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to