def change_padding(self, padding: List[int]):
    if (len(padding) != 2):
        raise ConfigError('Padding should only have an x and y value')
    (x, y) = padding
    if ('window' not in self.config):
        self.config['window'] = {}
        log.warn('"window" prop was not present in config file')
    if ('padding' not in self.config['window']):
        self.config['window']['padding'] = {}
        log.warn('"padding" prop was not present in config file')
    self.config['window']['padding']['x'] = x
    self.config['window']['padding']['y'] = y
    log.ok(f'Padding set to x: {x}, y: {y}')
def change_padding(self, padding: List[int]):
    if (len(padding) != 2):
        raise ConfigError('Padding should only have an x and y value')
    (x, y) = padding
    if ('window' not in self.config):
        self.config['window'] = {}
        log.warn('"window" prop was not present in config file')
    if ('padding' not in self.config['window']):
        self.config['window']['padding'] = {}
        log.warn('"padding" prop was not present in config file')
    self.config['window']['padding']['x'] = x
    self.config['window']['padding']['y'] = y
    log.ok(f'Padding set to x: {x}, y: {y}')