Esempio n. 1
0
 def onButtonDown(self, cursor, button):
     Element.onButtonDown(self, cursor, button)
     if button == cursor.buttonPrimary:
         self.pressed = True
         self.released = False
Esempio n. 2
0
 def onButtonDown(self, cursor, button):
     Element.onButtonDown(self, cursor, button)
     if button == cursor.buttonPrimary:
         self.onState()