def onButtonDown(self, cursor, button): Element.onButtonDown(self, cursor, button) if button == cursor.buttonPrimary: self.pressed = True self.released = False
def onButtonDown(self, cursor, button): Element.onButtonDown(self, cursor, button) if button == cursor.buttonPrimary: self.onState()