Exemplo n.º 1
0
class SchedClock(metaclass=Singleton):
    def __init__(self, lcd_display):
        self.lcd = lcd_display
        self.threadClock = QThreadClock()
        self.threadClock.time_signal.connect(self.refresh)

    def start_scheduler(self):
        self.threadClock.start()

    # Refreshing Clock
    def refresh(self, value):
        self.lcd.setText(value)
Exemplo n.º 2
0
class SchedClock(metaclass=Singleton):
    def __init__(self, lcd_display):
        self.lcd = lcd_display
        self.threadClock = QThreadClock()
        self.threadClock.time_signal.connect(self.refresh)

    def start_scheduler(self):
        self.threadClock.start()

    # Refreshing Clock
    def refresh(self, value):
        self.lcd.setText(value)
Exemplo n.º 3
0
 def __init__(self, lcd_display):
     self.lcd = lcd_display
     self.threadClock = QThreadClock()
     self.threadClock.time_signal.connect(self.refresh)
Exemplo n.º 4
0
 def __init__(self, lcd_display):
     self.lcd = lcd_display
     self.threadClock = QThreadClock()
     self.threadClock.time_signal.connect(self.refresh)