Esempio n. 1
0
    def __init__(self, arduino):
        self.arduino = arduino
        self.dial = RotaryDial(self)
        self.quit = 0
        self.displayString = "Dial Something"
        self.fullSearchString = ""
        self.searchList = []
        self.searchIndex = Index()

        #platform = pyglet.window.get_platform()
        #display  = platform.get_default_display()

        #display = window.get_platform().get_default_display()
        #screens = display.get_screens()

        window = pyglet.window.get_platform().get_default_display()

        self.lastFMLabel = pyglet.text.Label('',
                                             font_name='Times New Roman',
                                             font_size=24,
                                             I=window.width // 2,
                                             y=window.height // 9,
                                             anchor_x='center',
                                             anchor_y='center')

        pyglet.clock.schedule_interval_soft(self.checkLastFM, 2)