def bindKeys():
     keyboardmanager.bindKeyDown(
         scancode=scancode, keyname=keyname, text=text, help="", modifiers=modifiers, handler=keyDownPressed
     )
     if text == None:
         keyboardmanager.bindKeyUp(scancode=scancode, keyname=keyname, modifiers=modifiers, handler=keyUpPressed)
     else:
         self.statesRecords[1] = True
示例#2
0
 def bindKeys():
     keyboardmanager.bindKeyDown(scancode=scancode,
                                 keyname=keyname,
                                 text=text,
                                 help='',
                                 modifiers=modifiers,
                                 handler=keyDownPressed)
     if text == None:
         keyboardmanager.bindKeyUp(scancode=scancode,
                                   keyname=keyname,
                                   modifiers=modifiers,
                                   handler=keyUpPressed)
     else:
         self.statesRecords[1] = True
示例#3
0
 def bindKeys():
     keyboardmanager.bindKeyDown(keyString, keyDownPressed, '',
                                 modifiers)
     keyboardmanager.bindKeyUp(keyString, keyUpPressed, '', modifiers)
示例#4
0
文件: AppTest.py 项目: JohnChu/libavg
 def bindKeys():
     keyboardmanager.bindKeyDown(keyString, keyDownPressed, '', modifiers)
     keyboardmanager.bindKeyUp(keyString, keyUpPressed, '', modifiers)