(self, theme_name, theme)
Save a newly created theme to idleConf.

        theme_name - string, the name of the new theme
        theme - dictionary containing the new theme
Save a newly created theme to idleConf.
Save a newly created theme to idleConf .
def save_new(self, theme_name, theme):
        """Save a newly created theme to idleConf.

        theme_name - string, the name of the new theme
        theme - dictionary containing the new theme
        """
        idleConf.userCfg['highlight'].AddSection(theme_name)
        for element in theme:
            value = theme[element]
            idleConf.userCfg['highlight'].SetOption(theme_name, element, value)
def save_new ( self , theme_name , theme ) : idleConf . userCfg [ 'highlight' ] . AddSection ( theme_name ) for element in theme : value = theme [ element ] idleConf . userCfg [ 'highlight' ] . SetOption ( theme_name , element , value )