def connectDownstream(self, downstream): Converter.connectDownstream(self, downstream) vis = self.calcVisibility() if self.blink: if vis: self.startBlinking() else: self.stopBlinking() else: downstream.visible = self.calcVisibility()
def connectDownstream(self, downstream): Converter.connectDownstream(self, downstream) vis = self.calcVisibility() if self.blink: if not downstream.canPulsate(): self.timer = eTimer() self.timer_conn = self.timer.timeout.connect(self.blinkFunc) if vis: self.startBlinking() else: self.stopBlinking() else: downstream.visible = self.calcVisibility()