Changeset 903 for trunk/GSASII.py
- Timestamp:
- May 13, 2013 3:18:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r891 r903 9 9 # $Id$ 10 10 ########### SVN repository information ################### 11 ''' 12 *GSAS-II Main Module* 13 ===================== 14 15 Main routines for the GSAS-II program 16 ''' 11 17 12 18 import os … … 101 107 102 108 class GSASII(wx.Frame): 103 109 '''Define the main GSAS-II frame and its associated menu items 110 ''' 104 111 def _Add_FileMenuItems(self, parent): 105 112 item = parent.Append( … … 1101 1108 self.dirname = os.path.dirname(arg[1]) 1102 1109 if self.dirname: os.chdir(self.dirname) 1103 G2IO.ProjFileOpen(self) 1104 self.PatternTree.Expand(self.root) 1105 for item in self.Refine: item.Enable(True) 1106 for item in self.SeqRefine: item.Enable(True) 1110 try: 1111 G2IO.ProjFileOpen(self) 1112 self.PatternTree.Expand(self.root) 1113 for item in self.Refine: item.Enable(True) 1114 for item in self.SeqRefine: item.Enable(True) 1115 except: 1116 print 'Error opening file',arg[1] 1107 1117 1108 1118 def OnSize(self,event): … … 2327 2337 2328 2338 class GSASIImain(wx.App): 2339 '''Defines a wxApp for GSAS-II 2340 2341 Creates a wx frame (self.main) which contains the display of the 2342 data tree. 2343 ''' 2329 2344 def OnInit(self): 2345 '''Called automatically when the app is created.''' 2330 2346 self.main = GSASII(None) 2331 2347 self.main.Show() … … 2334 2350 2335 2351 def main(): 2352 '''Start up the GSAS-II application''' 2336 2353 application = GSASIImain(0) 2337 2354 if wxInspector: wxeye.InspectionTool().Show() … … 2341 2358 2342 2359 if __name__ == '__main__': 2343 main() 2360 main() # start the GUI
Note: See TracChangeset
for help on using the changeset viewer.