Example #1
0
    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
Example #2
0
def load_image(filename):
    config = thehandler.get_config()

    path = os.path.join(config['data_dir'], filename)
    return pygame.image.load(path).convert_alpha()