[pygtk] Receiving click events on a CellRendererPixbuf

John Haiducek jhaiduce at gmail.com
Mon May 16 05:33:56 WST 2011


On 05/15/11 07:56, Petr Kubánek wrote:
> Hi,
>
> I solved some time ago the problem by hooking to on_activate. That
> worked for GenericCellRender, not sure if that will work for Pixmap. The
> code is on:
>
> https://rts-2.svn.sourceforge.net/svnroot/rts-2/trunk/pyrts2/windowscheduler.py
>
> look for on_activate event. There is also description in the code how to
> render things in GenericCellRenderer.
>
> Hope this helps.

Thanks. I tried your approach and it works with GenericCellRenderer, but
not with CellRendererPixbuf. It appears CellRendererPixbuf doesn't have
any on-activate event. But I can subclass GenericCellRenderer for the
same effect.

John


More information about the pygtk mailing list