[pygtk] how to associate a button press event on gtk.CellRenderer cell

Amit Sethi amit.pureenergy at gmail.com
Wed Jul 15 02:11:28 WST 2009


Well may be I was not clearer in my mail . I want to add a signal and
i believe this should be possible . The signal callback can only
function if their is a signal prototype defined so
thus i would be able to say something like:

cell= gtk.cellRendererText()
cell.connect("one of the signals already defined" , self.somehandler)

but this will only give me the ability to handle one of the already
defined signals on the widget ... however i want the same widget with
one added functionality , it be able to listen to a button_press_event
:

so that i can do :
cell=gtk.cellRendererText()
cell.connect("button_press_event" , self.somehandler)

Now although i do not know pygtk architecture very well ... since
gtk.cellrenderer must inherit from a common base class , it must be
possible to make it listen to another kind of event .

what I am looking for is an Algorithm or tutorial of how to do such  a
thing ....


Well the first reference seems to be of  no use . I have a sneeky
feeling second would have been of use :(

Some algorithmic help would be of great use as i do not understand the
gtk architecture very well . I am only beginning to learn pygtk.

--
A-M-I-T S|S


More information about the pygtk mailing list