def create_screen(): if config.virtual_hardware: from screen.virtualscreen import VirtualScreen return VirtualScreen() else: from screen.screen import Screen return Screen()
def main(): screen = Screen() screen.setWindow(0, 0) screen.setFramerate(30) screen.setFont('resources/fonts/Courier Prime Code.ttf', 24) screen.start()
def main(): screen = Screen() input_path, output_path = argparse() try: input_file = open(input_path, "r") output_file = open(output_path, "w+") except FileNotFoundError: raise SystemExit(USAGE) for item in input_file.read().split("\n"): output_file.write(screen.change_state(item) + "\n") input_file.close() output_file.close()
def setUp(self): self.test_screen = Screen()