def Select(self, status): InSpaceBracket.Select(self, status) if status: self.SetCapacityBarPercentage(self.GetSiphonCapacityUsage()) self.capacityBar.state = uiconst.UI_NORMAL else: self.capacityBar.state = uiconst.UI_HIDDEN self.SetHint('')
def Select(self, status): if bool(status) != self.Showing(): InSpaceBracket.Select(self, status) self.Update()