def button_press_event(self, widget, event):
        # event.button, event.x, event.y
        x = event.x; y = event.y
        button = self.kbdmouse_mask
        if event.button != 0:
            button |= 0x1 << (event.button - 1)
        return True
dataset/ETHPy150Open ejeschke/ginga/ginga/gtkw/GtkHelp.py/MDIWidget.button_press_event/original