[wxPython-users] stylish text in grid

Adam Groszer adamg at fw.hu
Wed Nov 1 07:50:50 PST 2006


Hello Robin,

What is the lifecycle of the custom renderer object?
Does it get instanciated and GC'ed with the grid or with every cell?

Sunday, October 29, 2006, 1:55:35 AM, you wrote:

> Adam Groszer wrote:
>> Hello,
>> 
>> I need to have a stylable text control in the grid. I have to paint
>> diverse text in the cell with diverse background colors. That goes
>> also for display and edit modes.
>> 
>> My question is that can I somehow let the wxTextCtrl draw itself in a
>> wxGridCellRenderer for a cell or do I have to re-code the
>> functionality in a custom cell renderer.
>> 

> You'll need a custom cell renderer class.




-- 
Best regards,
 Adam                            mailto:adamg at fw.hu
--
Quote of the day:
Every journalist has a novel in him, which is an excellent place for it.





More information about the wxpython-users mailing list