[pygtk] Calling base class signal handler

Marko Anastasov marko at marko.anastasov.name
Thu Aug 9 06:11:04 WST 2007


Hello,

I'd like to do the something like:

class MyBox(gtk.EventBox):
    # ...
    def do_button_press_event(self, event):
        # ...
        return gtk.EventBox.do_button_press_event(self, event)

but that throws a 'NotImplementedError: virtual method
GtkWidget.button_press_event not implemented'.

What would be the right way?

I'm rather new to Python there must something about the
object model which I am not aware of.

Marko




More information about the pygtk mailing list