def loadDockingSettings(self):
     #test if there is a perspective to load
        try:
            f= open(util.resource_path('ODMTools.config'), 'r')
        except:
            # Create the file if it doesn't exist
            open(util.resource_path('ODMTools.config'), 'w').close()
            f = open(util.resource_path('ODMTools.config'), 'r')

        self._mgr.LoadPerspective(f.read(), True)
 def OnClose(self, event):
     # deinitialize the frame manager
     self.pnlPlot.Close()
     try:
         f= open(util.resource_path('ODMTools.config'), 'w')
         f.write(self._mgr.SavePerspective())
     except:
         print "error saving docking data"
     self._mgr.UnInit()
     # delete the frame
     self.Destroy()