Changeset 660 for trunk/GSASII.py
- Timestamp:
- Jun 29, 2012 4:13:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r655 r660 58 58 # load the GSAS routines 59 59 import GSASIIpath 60 GSASIIpath.SetVersionNumber("$Revision$") 60 61 import GSASIIIO as G2IO 61 62 import GSASIIgrid as G2gd … … 86 87 __version__ = '0.2.0' 87 88 G2gd.__version__ = __version__ 88 print "This is GSAS-II version: ",__version__ 89 print "This is GSAS-II version: ",__version__,' revision '+str(GSASIIpath.GetVersionNumber()) 89 90 90 91 # useful degree trig functions … … 402 403 403 404 def _init_Import_Phase(self,parent): 404 '''import all the G2 importphase*.py files that are found in the405 '''import all the G2phase*.py files that are found in the 405 406 path and configure the Import Phase menus accordingly 406 407 ''' … … 456 457 457 458 def _init_Import_Sfact(self,parent): 458 '''import all the G2 importsfact*.py files that are found in the459 '''import all the G2sfact*.py files that are found in the 459 460 path and configure the Import Structure Factor menus accordingly 460 461 ''' … … 512 513 513 514 def _init_Import_powder(self,parent): 514 '''import all the G2 importpwd*.py files that are found in the515 '''import all the G2pwd*.py files that are found in the 515 516 path and configure the Import Powder Data menus accordingly 516 517 ''' … … 789 790 return # success 790 791 792 def _init_Exports(self,parent): 793 ''' 794 ''' 795 #self.Exportlist = [] 796 #self._init_Import_routines(parent,'phase', 797 # self.ImportPhaseReaderlist, 798 # 'Phase') 799 submenu = wx.Menu() 800 item = parent.AppendMenu( 801 wx.ID_ANY, 'entire project', 802 submenu, help='Export entire project') 803 item = submenu.Append( 804 wx.ID_ANY, 805 help='this is a module for testing', 806 kind=wx.ITEM_NORMAL, 807 text='to test file') 808 #self.ImportMenuId[item.GetId()] = reader 809 self.Bind(wx.EVT_MENU, self.OnExportTest, id=item.GetId()) 810 # for reader in self.ImportPhaseReaderlist: 811 # item = submenu.Append(wx.ID_ANY, 812 # help='to Import specific format phase data', 813 # kind=wx.ITEM_NORMAL,text='from '+reader.formatName+' file') 814 # self.ImportMenuId[item.GetId()] = reader 815 # self.Bind(wx.EVT_MENU, self.OnImportPhase, id=item.GetId()) 816 # item = submenu.Append(wx.ID_ANY, 817 # help='Import phase data, use file to try to determine format', 818 # kind=wx.ITEM_NORMAL, 819 # text='guess format from file') 820 # self.Bind(wx.EVT_MENU, self.OnImportPhase, id=item.GetId()) 821 import G2export 822 823 def OnExportTest(self,event): 824 import G2export 825 reload(G2export) 826 G2export.ProjExport(self) 827 828 829 791 830 def _init_coll_Export_Items(self,parent): 792 831 self.ExportPattern = parent.Append(help='Select PWDR item to enable',id=wxID_EXPORTPATTERN, kind=wx.ITEM_NORMAL, … … 832 871 self._init_Import_Sfact(self.Import) 833 872 self._init_coll_Export_Items(self.Export) 873 self._init_Exports(self.Export) 834 874 835 875 def _init_ctrls(self, parent): … … 1670 1710 if self.dataFrame: 1671 1711 self.dataFrame.Clear() 1672 dlg = wx.MessageDialog(self, 'Overwrite?','Project exists!', wx.OK | wx.CANCEL) 1712 dlg = wx.MessageDialog( 1713 self, 1714 'Do you want to overwrite the current project? ' 1715 'Any unsaved changes will be lost. Press OK to continue.', 1716 'Overwrite?', wx.OK | wx.CANCEL) 1673 1717 try: 1674 1718 result = dlg.ShowModal() … … 1746 1790 self.GSASprojectfile = dlg.GetPath() 1747 1791 self.GSASprojectfile = G2IO.FileDlgFixExt(dlg,self.GSASprojectfile) 1748 self.PatternTree.SetItemText(self.root,' Loaded Data:'+self.GSASprojectfile)1792 self.PatternTree.SetItemText(self.root,'Saving project as'+self.GSASprojectfile) 1749 1793 G2IO.ProjFileSave(self) 1750 1794 self.dirname = dlg.GetDirectory()
Note: See TracChangeset
for help on using the changeset viewer.