示例#1
0
 def keyCombo(self, comboString):
     if config.debugSearching:
         logger.log("Pressing keys '%s' into %s" % (comboString, self.getLogString()))
     if self.focusable:
         if not self.focused:
             try:
                 self.grabFocus()
             except Exception:
                 logger.log("Node is focusable but I can't grabFocus!")
     else:
         logger.log("Node is not focusable; trying key combo anyway")
     rawinput.keyCombo(comboString)
示例#2
0
文件: tree.py 项目: unal55/dogtail
 def keyCombo(self, comboString):
     if config.debugSearching:
         logger.log("Pressing keys '%s' into %s" %
                    (comboString, self.getLogString()))
     if self.focusable:
         if not self.focused:
             try:
                 self.grabFocus()
             except Exception:
                 logger.log("Node is focusable but I can't grabFocus!")
     else:
         logger.log("Node is not focusable; trying key combo anyway")
     rawinput.keyCombo(comboString)
示例#3
0
def keyCombo(combo):
    if focus.widget.node:
        focus.widget.node.keyCombo(combo)
    else:
        rawinput.keyCombo(combo)
示例#4
0
def keyCombo(combo):
    if focus.widget.node:
        focus.widget.node.keyCombo(combo)
    else:
        rawinput.keyCombo(combo)