def action(self, contexts, action): numbers = ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9") if (action in numbers and action in self.actions): res = self.actions[action](int(action)) if res is not None: return res return 1 else: return HelpableActionMap.action(self, contexts, action)
def action(self, contexts, action): numbers = ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9") if (action in numbers and self.actions.has_key(action)): res = self.actions[action](int(action)) if res is not None: return res return 1 else: return HelpableActionMap.action(self, contexts, action)
def action(self, contexts, action): # Reset Quickselect self.box.timeout(force=True) return HelpableActionMap.action(self, contexts, action)
def action(self, contexts, action): # Reset Quickselect self.box.timeout(force = True) return HelpableActionMap.action(self, contexts, action)
def action(self, contexts, action): self.box.timeout(force=True) return HelpableActionMap.action(self, contexts, action)
def action(self, contexts, action): if action not in ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9"): self.box.timeout( force=True) # Reset QuickSelect on non numbers. return HelpableActionMap.action(self, contexts, action)