code: def on_btn_orientation(self, event):
          
          wait = wx.BusyInfo('Compiling required data, please wait...')
          wx.SafeYield()
          #dw, dh = wx.DisplaySize()
          size = wx.DisplaySize()
          size = (size[0]-0.1 * size[0], size[1]-0.1 * size[1])
          if self.data_model_num == 3:
              frame = pmag_gui_dialogs.OrientFrameGrid3(self, -1, 'demag_orient.txt',
                                                          self.WD, self.contribution,
                                                          size)
          else:
              frame = pmag_gui_dialogs.OrientFrameGrid(self, -1, 'demag_orient.txt',
                                                          self.WD, self.er_magic, size)
          frame.Show(True)
          frame.Centre()
          self.Hide()
          del wait
docs: Create and fill wxPython grid for entering
          orientation data.