예제 #1
0
 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()
예제 #2
0
    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()