code: def go(self):
      self.root.wait_visibility()
      self.root.grab_set()
      self.root.mainloop()
      self.root.destroy()
      return self.num
  
imports: from tkinter import *
  from tkinter import _get_temp_root, _destroy_temp_root
  from tkinter import messagebox
label_desc: Use image node_id 2 for calling the SimpleDialog obj's underlying member method code with example usage: obj.go() and returns: self