(self)
Toggle between basic and advanced keys.
Toggle between basic and advanced keys.
Toggle between basic and advanced keys .
def toggle_level(self):
        "Toggle between basic and advanced keys."
        if  self.button_level.cget('text').startswith('Advanced'):
            self.clear_key_seq()
            self.button_level.config(text='<< Basic Key Binding Entry')
            self.frame_keyseq_advanced.lift()
            self.frame_help_advanced.lift()
            self.advanced_keys.focus_set()
            self.advanced = True
        else:
            self.clear_key_seq()
            self.button_level.config(text='Advanced Key Binding Entry >>')
            self.frame_keyseq_basic.lift()
            self.frame_controls_basic.lift()
            self.advanced = False
def toggle_level ( self ) : if self . button_level . cget ( 'text' ) . startswith ( 'Advanced' ) : self . clear_key_seq ( ) self . button_level . config ( text = '<< Basic Key Binding Entry' ) self . frame_keyseq_advanced . lift ( ) self . frame_help_advanced . lift ( ) self . advanced_keys . focus_set ( ) self . advanced = True else : self . clear_key_seq ( ) self . button_level . config ( text = 'Advanced Key Binding Entry >>' ) self . frame_keyseq_basic . lift ( ) self . frame_controls_basic . lift ( ) self . advanced = False