(self)
Set available screen options based on builtin or custom theme.

        Attributes accessed:
            theme_source

        Attributes updated:
            builtinlist
            customlist
            button_delete_custom
            custom_theme_on

        Called from:
            handler for builtin_theme_on and custom_theme_on
            delete_custom
            create_new
            load_theme_cfg
Set available screen options based on builtin or custom theme.
Set available screen options based on builtin or custom theme .
def set_theme_type(self):
        """Set available screen options based on builtin or custom theme.

        Attributes accessed:
            theme_source

        Attributes updated:
            builtinlist
            customlist
            button_delete_custom
            custom_theme_on

        Called from:
            handler for builtin_theme_on and custom_theme_on
            delete_custom
            create_new
            load_theme_cfg
        """
        if self.theme_source.get():
            self.builtinlist['state'] = 'normal'
            self.customlist['state'] = 'disabled'
            self.button_delete_custom.state(('disabled',))
        else:
            self.builtinlist['state'] = 'disabled'
            self.custom_theme_on.state(('!disabled',))
            self.customlist['state'] = 'normal'
            self.button_delete_custom.state(('!disabled',))
def set_theme_type ( self ) : if self . theme_source . get ( ) : self . builtinlist [ 'state' ] = 'normal' self . customlist [ 'state' ] = 'disabled' self . button_delete_custom . state ( ( 'disabled' , ) ) else : self . builtinlist [ 'state' ] = 'disabled' self . custom_theme_on . state ( ( '!disabled' , ) ) self . customlist [ 'state' ] = 'normal' self . button_delete_custom . state ( ( '!disabled' , ) )