def _load_options(parser):
    """Load config options from parser and return them as a dict.

    :param parser: `ConfigParser` object with the values loaded.
    :return: Dictionary of config options.
    """
    config = dict(
        MESSAGE_DURATION=parser.getint('gui', 'message_duration'),
        GUI_WELCOME_LABLE=parser.get('gui', 'gui_welcome_label'),
        FULL_USER_NAMES=parser.getboolean('gui', 'full_user_names'),
        LARGE_FONT_SIZE=parser.getint('gui', 'large_font_size'),
        MEDIUM_FONT_SIZE=parser.getint('gui', 'medium_font_size'),
        SMALL_FONT_SIZE=parser.getint('gui', 'small_font_size'),
        TINY_FONT_SIZE=parser.getint('gui', 'tiny_font_size'),
        MAX_INPUT_LENGTH=parser.getint('gui', 'max_input_length'),
    )
    return config
Load config options from parser and return them as a dict.

    :param parser: `ConfigParser` object with the values loaded.
    :return: Dictionary of config options.