docstr: Return True if Tcl accepts the new keys else show message.
docstr_tok: ["Return","True","if","Tcl","accepts","the","new","keys","else","show","message","."]
code: def bind_ok(self, keys):
      "Return True if Tcl accepts the new keys else show message."
      try:
          binding = self.bind(keys, lambda: None)
      except TclError as err:
          self.showerror(
              title=self.keyerror_title,
              parent=self,
              message=(
                  f"The entered key sequence is not accepted.\n\n"
                  f"Error: {err}"
              ),
          )
          return False
      else:
          self.unbind(keys, binding)
          return True
  
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 12 for calling the GetKeysFrame obj's underlying member method code with example usage: obj.bind_ok(keys) and returns: True, False