def enterActive(self): SCElement.enterActive(self) self.showMenu() if hasattr(self, 'button'): r, g, b = self.getColorScheme().getMenuHolderActiveColor() a = self.getColorScheme().getAlpha() self.button.frameStyle[DGG.BUTTON_READY_STATE].setColor(r, g, b, a) self.button.updateFrameStyle() else: self.notify.warning( 'SCMenuHolder has no button (has finalize been called?).')
def onMouseClick(self, event): SCElement.enterActive(self) self.parentMenu.memberSelected(self)