def apply_plugin_settings(self, options):
        """Apply configuration file's plugin settings"""
        color_scheme_n = 'color_scheme_name'
        color_scheme_o = self.get_color_scheme()
        font_n = 'plugin_font'
        font_o = self.get_plugin_font()
        wrap_n = 'wrap'
        wrap_o = self.get_option(wrap_n)
        self.wrap_action.setChecked(wrap_o)
        linenb_n = 'line_numbers'
        linenb_o = self.get_option(linenb_n)
        for editor in self.editors:
            if font_n in options:
                scs = color_scheme_o if color_scheme_n in options else None
                editor.set_font(font_o, scs)
            elif color_scheme_n in options:
                editor.set_color_scheme(color_scheme_o)
            if wrap_n in options:
                editor.toggle_wrap_mode(wrap_o)
            if linenb_n in options:
                editor.toggle_line_numbers(linenumbers=linenb_o, markers=False)
def apply_plugin_settings ( self , options ) : color_scheme_n = 'color_scheme_name' color_scheme_o = self . get_color_scheme ( ) font_n = 'plugin_font' font_o = self . get_plugin_font ( ) wrap_n = 'wrap' wrap_o = self . get_option ( wrap_n ) self . wrap_action . setChecked ( wrap_o ) linenb_n = 'line_numbers' linenb_o = self . get_option ( linenb_n ) for editor in self . editors : if font_n in options : scs = color_scheme_o if color_scheme_n in options else None editor . set_font ( font_o , scs ) elif color_scheme_n in options : editor . set_color_scheme ( color_scheme_o ) if wrap_n in options : editor . toggle_wrap_mode ( wrap_o ) if linenb_n in options : editor . toggle_line_numbers ( linenumbers = linenb_o , markers = False )
Apply configuration file's plugin settings