Example #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)
Example #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)
Example #3
0
 def __init__(self, lcd_display):
     self.lcd = lcd_display
     self.threadClock = QThreadClock()
     self.threadClock.time_signal.connect(self.refresh)
Example #4
0
 def __init__(self, lcd_display):
     self.lcd = lcd_display
     self.threadClock = QThreadClock()
     self.threadClock.time_signal.connect(self.refresh)