def handleKeyEvent(self, keyInfo): handler = None if "t" in keyInfo and keyInfo.get('cmd'): handler = { "b": self.beta, "h": self.theta, "r": self.rho, "t": self.treated, "u": self.untreated }.get(keyInfo["t"]) elif "t" in keyInfo and keyInfo.get('ctrl'): handler = { "b": self.show_beta, "h": self.show_theta, "r": self.show_rho, "t": self.show_treated, "u": self.show_untreated }.get(keyInfo["t"]) elif "t" in keyInfo: handler = { "p": self.togglePlotType, "c": self.toggleCounts, "f": self.toggleNull, "t": self.totalCounts }.get(keyInfo["t"]) if handler: handler() else: BaseScene.handleKeyEvent(self, keyInfo)
def handleKeyEvent(self, keyInfo): if keyInfo.get("s") == "DEL": self.match_filter = self.match_filter[:-1] self.update_filter() elif keyInfo.get("t") in [ "a","c","g","t" ] and 1 == len(keyInfo): self.match_filter += keyInfo["t"].upper() self.update_filter() elif keyInfo.get("t") == "x" and 1 == len(keyInfo): self.match_filter = "" self.update_filter() else: BaseScene.handleKeyEvent(self, keyInfo)
def handleKeyEvent(self, keyInfo): handler = None if "t" in keyInfo and keyInfo.get('cmd'): handler = { "b" : self.beta, "h" : self.theta, "r" : self.rho, "t" : self.treated, "u" : self.untreated }.get(keyInfo["t"]) elif "t" in keyInfo and keyInfo.get('ctrl'): handler = { "b" : self.show_beta, "h" : self.show_theta, "r" : self.show_rho, "t" : self.show_treated, "u" : self.show_untreated }.get(keyInfo["t"]) elif "t" in keyInfo: handler = { "p" : self.togglePlotType, "c" : self.toggleCounts, "f" : self.toggleNull, "t" : self.totalCounts }.get(keyInfo["t"]) if handler: handler() else: BaseScene.handleKeyEvent(self, keyInfo)
def handleKeyEvent(self, keyInfo): handler = { "0" : self.firstTarget }.get(keyInfo["t"]) if handler: handler() else: BaseScene.handleKeyEvent(self, keyInfo)
def handleKeyEvent(self, keyInfo): handler = {"0": self.firstTarget}.get(keyInfo["t"]) if handler: handler() else: BaseScene.handleKeyEvent(self, keyInfo)
def handleKeyEvent(self, keyInfo): handler = { "x" : self.expand }.get(keyInfo["t"]) if handler: handler() else: BaseScene.handleKeyEvent(self, keyInfo)