Re: [pygtk] Receiving click events on a CellRendererPixbuf

2011-05-15 Thread Petr Kubánek
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

Re: [pygtk] Receiving click events on a CellRendererPixbuf

2011-05-15 Thread John Haiducek
On 05/14/11 22:35, Osmo Salomaa wrote: la, 2011-05-14 kello 21:17 -0600, John Haiducek kirjoitti: Is there any way for a CellRendererPixbuf to receive click events? Maybe you can handle those click events at the tree view level? Take a look at gtk.TreeView signals 'cursor-changed' and

Re: [pygtk] Receiving click events on a CellRendererPixbuf

2011-05-15 Thread John Haiducek
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

Re: [pygtk] Receiving click events on a CellRendererPixbuf

2011-05-15 Thread Osmo Salomaa
su, 2011-05-15 kello 15:31 -0600, John Haiducek kirjoitti: That had occurred to me, but I was hoping there was a simpler way (unless it's not so complicated as I thought to figure out which coordinates are inside the cell). Tree view's 'row-activated' will send the path and column as arguments

[pygtk] sentence twice impression

2011-05-15 Thread craf
Hi. It is possible to prevent the print statement, printed on the screen 2 times? Code:- #!/usr/bin/env python import gtk class RadioButton: def __init__(self): self.window = gtk.Window() self.vbox =