def get_window_size(self): """Returns the window size from the configuration file.""" config = get_config() str_win_size = config.get_app_option_list("Window Size") win_size = [300, 600] if str_win_size is not None: win_size = [int(dimsize) for dimsize in str_win_size] return win_size
def get_coords(self): """Returns the default (x, y) coordinates from the configuration file.""" config = get_config() str_coords = config.get_app_option_list("Coordinates") coords = [0, 0] if str_coords is not None: coords = [int(coord) for coord in str_coords] return coords