

def onElementContextmenu(self, sender, event):
    x = (DOM.eventGetClientX(event) - DOM.getAbsoluteLeft(self.canvas.getElement()))
    y = (DOM.eventGetClientY(event) - DOM.getAbsoluteTop(self.canvas.getElement()))
    s = self.desc[self.elements.index(sender)]
    self.set_status(((((('Contextmenue on Element ' + s) + ' at ') + str(x)) + ', ') + str(y)))
    DOM.eventCancelBubble(event, True)
    DOM.eventPreventDefault(self)

dataset/ETHPy150Open pyjs/pyjs/examples/raphael/events.py Events.onElementContextmenu/VarMisuse@124/165 `event`->`self`