[pygtk] gtk.ComboBoxEntry not recognized as a GtkCellEditable
Ruben Lopez
r.lopez at bren.es
Fri Mar 23 04:50:01 WST 2007
Hi,
I'm doing my own CellRenderer (derived from GenericCellRenderer) =
following the decorator design pattern, to use an existing renderer and =
add some extra graphics to it, and modify the original renderer =
behaviour in some cases. It's working pretty well with CellRendererText =
and CellRendererToggle as the decorated item, but it fails with =
CellRendererCombo because of something that seems a bug to me:
This is the object that the original renderer start_editing method gives:
Object: <gtk.ComboBoxEntry object (GtkComboBoxEntry) at 0xb7c3ccd4>
These are the interfaces supported by this object:
Interfaces: [<GType AtkImplementorIface (159548008)>, <GType =
GtkCellLayout (159763248)>, <GType GtkCellEditable (159768856)>]
This is what happens when I return this object on my custom =
on_start_editing method:
** (test.py:23800): WARNING **: return of start_editing() was not a =
GtkCellEditable
I attach the python file where I'm testing these ideas. Is there =
something wrong with my decorator or is this a bug of pyGTK 2.8?
The test file is not adding extra behaviour to the original renderer, =
and it even doesn't show any column data. It's just a proof of concept. =
If you change the decorator with the decorated in the column, the combo =
selector works well.
Thanks in advance.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 2994 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20070322/1f3c2765/t=
est.py
More information about the pygtk
mailing list