[pygtk] How do I access CellRenderer for a gtk.ComboBoxEntry?

Paul Pogonyshev pogonyshev at gmx.net
Sat Dec 16 05:03:41 WST 2006


John Green wrote:
> According to the pygtk reference documentation for gtk.ComboBoxEntry:
> 
> "A new combo box entry is created and packed with a gtk.CellRendererText but
> no attribute mappings are set on the cell renderer."
> 
> Some of the entries in the list are quite long and so I'd like to set
> 'ellipsize' property on the cell renderer. The trouble is I can't figure out
> >from the docs how I access the cell renderer for this widget. Can anyone
> help?

Probably the only possible way is to call clear() to remove the standard
renderer and add a custom one.  `text-column' property will not work
anymore, of course.

Paul


More information about the pygtk mailing list