Exemple #1
0
 def __init__(self,
              display,
              text,
              font_index=7,
              size=config.CLOCK_FONT_SIZE):
     View.__init__(self, display)
     self.text = text
     self.size = size
     self.font_path = f"./fonts/{config.FONTS[font_index][0]}"
     self._create_font()
Exemple #2
0
 def __init__(self, display):
     View.__init__(self, display)
     self._set_clock_font()
Exemple #3
0
 def __init__(self, display):
     View.__init__(self, display)
     self.font = ImageFont.truetype(f"./fonts/{config.FONTS[3][0]}", floor(8 * config.FONTS[3][1]))
Exemple #4
0
 def __init__(self, display):
     View.__init__(self, display)
Exemple #5
0
 def __init__(self, display):
     View.__init__(self, display)
     random.seed()
     self._randomize()