class_docstr: Class to open dialogs.
  
  This class is intended as a base class for custom dialogs
class_docstr_tok: ["Class","to","open","dialogs",".","This","class","is","intended","as","a","base","class","for","custom","dialogs"]
code: def cancel(self, event=None):
      # put focus back to the parent window
      if self.parent is not None:
          self.parent.focus_set()
      self.destroy()
  
imports: from tkinter import *
  from tkinter import _get_temp_root, _destroy_temp_root
  from tkinter import messagebox
label_desc: Use image node_id 6 for calling the Dialog obj's underlying member method code with example usage: obj.cancel(event) without return types