def onKeyEvent( self, isDown, key, modifiers ): if not BigBang.cursorOverGraphicsWnd(): return 0 handled = BigBang.camera().handleKeyEvent( isDown, key, modifiers ) if not handled and isDown: handled = self.ownKeyEvent( key, modifiers ) if not handled and BigBang.tool() != None: handled = BigBang.tool().handleKeyEvent( isDown, key, modifiers ) return handled
def onKeyEvent(self, isDown, key, modifiers): if not BigBang.cursorOverGraphicsWnd(): return 0 handled = BigBang.camera().handleKeyEvent(isDown, key, modifiers) if not handled and isDown: handled = self.ownKeyEvent(key, modifiers) if not handled and BigBang.tool() != None: handled = BigBang.tool().handleKeyEvent(isDown, key, modifiers) return handled
def onPause( self ): self.cc.visible = 0 self.cc.delAsView() if BigBang.tool() == self.chunkTool: BigBang.pushTool( self.chunkTool )
def onPause(self): self.cc.visible = 0 self.cc.delAsView() if BigBang.tool() == self.chunkTool: BigBang.pushTool(self.chunkTool)