docstr: Toggle between basic and advanced keys.
docstr_tok: ["Toggle","between","basic","and","advanced","keys","."]
code: 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
  
imports: from tkinter import Toplevel, Listbox, StringVar, TclError
  from tkinter.ttk import Frame, Button, Checkbutton, Entry, Label, Scrollbar
  from tkinter import messagebox
  from tkinter.simpledialog import _setup_dialog
  import string
  import sys
label_desc: Use image node_id 5 for calling the GetKeysFrame obj's underlying member method code with example usage: obj.toggle_level() without return types