Ejemplo n.º 1
0
    def update(self, render=None):
        SelectionMenu.update(self, render)
        if self.isActive and self.isSelect:
            done = False
            for widgetList in self._widget:
                for child in widgetList:
                    if isinstance(child, Active) and \
                            child.isActive and child is not self._currentActive:
                        print("ok")
                        self._currentActive = child
                        done = True
                        break
                if done:
                    break
            if not self._currentActive:
                done = False
                for widgetList in self._widget:
                    for child in widgetList:
                        if isinstance(child, Active):
                            self._currentActive = child
                            done = True
                            break
                    if done:
                        break

            self.disactiveOtherWidget()