예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 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
예제 #4
0
 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