Exemplo n.º 1
0
 def on_clear(self, event):
     """
     initialize window to allow user to empty the working directory
     """
     dia = pmag_menu_dialogs.ClearWD(self.parent, self.parent.WD)
     clear = dia.do_clear()
     if clear:
         print('-I- Clear data object')
         self.contribution = nb.Contribution(self.WD, dmodel=self.data_model)
         self.edited = False
Exemplo n.º 2
0
 def on_clear(self, event):
     """
     initialize window to allow user to empty the working directory
     """
     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()