You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
739 B
Python

from typing import List
import logging
class Screen:
def __init__(self):
self.type = None
self.supports_custom_fonts = False
def getScreenType(self):
return self.type
def clearScreen(self):
raise NotImplementedError("Subclass must implement this method")
def setFont(self, font: str, size: int):
raise NotImplementedError("Subclass must implement this method")
def setDefaultFont(self):
raise NotImplementedError("Subclass must implement this method")
def displayLines(self, lines: List[str], x_margin: int = 2):
logging.debug(f"Not implemented, not using {lines}, {x_margin}")
raise NotImplementedError("Subclass must implement this method")