@decorate_set_on_listener("oncontextmenu", "(self)")
    def set_on_contextmenu_listener(self, listener, funcname):
        self.attributes[self.EVENT_ONCONTEXTMENU] = \
            "sendCallback('%s','%s');" \
            "event.stopPropagation();event.preventDefault();" \
            "return false;" % (id(self), self.EVENT_ONCONTEXTMENU)
        self.eventManager.register_listener(self.EVENT_ONCONTEXTMENU, listener, funcname)
Registers the listener for the Widget.oncontextmenu event.
dataset/ETHPy150Open dddomodossola/remi/remi/gui.py/Widget.set_on_contextmenu_listener