code: def on_clear(self, event):
          
          dia = pmag_menu_dialogs.ClearWD(self.parent, self.parent.WD)
          clear = dia.do_clear()
          if clear:
              print('-I- Clear data object')
              self.parent.er_magic = builder.ErMagicBuilder(self.parent.WD, self.parent.data_model)
              print('-I- Initializing headers')
              self.parent.er_magic.init_default_headers()
              self.parent.er_magic.init_actual_headers()
docs: initialize window to allow user to empty the working directory