def METHOD_NAME(self, settings):
    style = settings.value('style', None, int)
    if style is not None:
        style = TAPE_STYLES[style]
        self.styles.setCurrentText(style)
        self.on_style_changed(style)
    font_string = settings.value('font')
    if font_string is not None:
        font = QFont()
        if font.fromString(font_string):
            self.header.setFont(font)
            self.tape.setFont(font)
    ontop = settings.value('ontop', None, bool)
    if ontop is not None:
        self.action_ToggleOnTop.setChecked(ontop)
        self.on_toggle_ontop(ontop)