code: def on_m_open_file(self,event):
          '''
          open orient.txt
          read the data
          display the data from the file in a new grid
          '''
          dlg = wx.FileDialog(
              self, message="choose orient file",
              defaultDir=self.WD,
              defaultFile="",
              style=wx.FD_OPEN | wx.FD_CHANGE_DIR
              )
          if dlg.ShowModal() == wx.ID_OK:
              orient_file = dlg.GetPath()
              dlg.Destroy()
              new_data = self.er_magic_data.read_magic_file(orient_file, "sample_name")[0]
              if len(new_data) > 0:
                  self.orient_data={}
                  self.orient_data=new_data
              #self.create_sheet()
              self.update_sheet()
              print("-I- If you don't see a change in the spreadsheet, you may need to manually re-size the window"f on_m_open_file(self,event):
          '''
          open orient.txt
          read the data
          display the data from the file in a new grid
          '''
          dlg = wx.FileDialog(
              self, message="choose orient file",
              defaultDir=self.WD,
              defaultFile="",
              style=wx.FD_OPEN | wx.FD_CHANGE_DIR
              )
          if dlg.ShowModal() == wx.ID_OK:
              orient_file = dlg.GetPath()
              dlg.Destroy()
              new_data = self.er_magic_data.read_magic_file(orient_file, "sample_name")[0]
              if len(new_data) > 0:
                  self.orient_data={}
                  self.orient_data=new_data
              #self.create_sheet()
              self.update_sheet()
              print("-I- If you don't see a change in the spreadsheet, you may need to manually re-size the window")
docs: open orient.txt
          read the data
          display the data from the file in a new grid