Exemple #1
0
 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?).')
Exemple #2
0
 def onMouseClick(self, event):
     SCElement.enterActive(self)
     self.parentMenu.memberSelected(self)