Hi Ian, Thank you for your response, I should probably take a closer look to the examples. Anyway right now I'm trying to dive deeper into urwid since I'm discovering its cooler features with every day of using it. Anyway for my special case I found out that using that is kinda unproductive so I'm extending the edit widget to have an id which makes it possible for me to find out which edit field the user just entered or better to say in which edit field the user typed something and triggered the change event (due to the fact that my widgets are dynamicly created I'm not able to determine which edit field triggered the change event and entered my callback without something like that). Anyway thank you very much and keep up the good work.
Greets, Florian Am 11.04.2011 15:02, schrieb Ian Ward: > 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 _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
