def __init__(self, window): self.window = window config = thehandler.get_config() self.winx = config['window_x'] self.winy = config['window_y'] self.scene = view.MainMenuScene(self.winx, self.winy) self.text_input = None
def load_image(filename): config = thehandler.get_config() path = os.path.join(config['data_dir'], filename) return pygame.image.load(path).convert_alpha()