Changeset 3438 for trunk/GSASIIctrlGUI.py
- Timestamp:
- Jun 18, 2018 11:35:30 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIctrlGUI.py
r3426 r3438 171 171 for arg in args: 172 172 if GSASIIpath.GetConfigValue('debug') and not arg.startswith('wxID_'): 173 print (' Problem in name'+arg)173 print ('DBG_Problem in name'+arg) 174 174 if arg in globals(): 175 if GSASIIpath.GetConfigValue('debug'): print ( arg+'already defined')175 if GSASIIpath.GetConfigValue('debug'): print ('DBG_'+arg+'already defined') 176 176 continue 177 177 exec('global '+arg+';'+arg+' = wx.NewId()') … … 3058 3058 return G2frame.TutorialImportDir 3059 3059 elif GSASIIpath.GetConfigValue('debug'): 3060 print(' Tutorial location (TutorialImportDir) not found: '+G2frame.TutorialImportDir)3060 print('DBG_Tutorial location (TutorialImportDir) not found: '+G2frame.TutorialImportDir) 3061 3061 pth = GSASIIpath.GetConfigValue('Import_directory') 3062 3062 if pth: … … 3071 3071 return G2frame.LastImportDir 3072 3072 elif GSASIIpath.GetConfigValue('debug'): 3073 print(' Warning: G2frame.LastImportDir not found = '+G2frame.LastImportDir)3073 print('DBG_Warning: G2frame.LastImportDir not found = '+G2frame.LastImportDir) 3074 3074 return None 3075 3075 … … 4115 4115 try: 4116 4116 helpKey = dW.helpKey # look up help from helpKey in data window 4117 #if GSASIIpath.GetConfigValue('debug'): print ' dataWindow help: key=',helpKey4117 #if GSASIIpath.GetConfigValue('debug'): print 'DBG_dataWindow help: key=',helpKey 4118 4118 except AttributeError: 4119 4119 helpKey = '' 4120 if GSASIIpath.GetConfigValue('debug'): print(' No helpKey for current dataWindow!')4120 if GSASIIpath.GetConfigValue('debug'): print('DBG_No helpKey for current dataWindow!') 4121 4121 helpType = self.HelpById.get(event.GetId(),helpKey) # see if there is a special help topic 4122 #if GSASIIpath.GetConfigValue('debug'): print ' helpKey=',helpKey,' helpType=',helpType4122 #if GSASIIpath.GetConfigValue('debug'): print 'DBG_helpKey=',helpKey,' helpType=',helpType 4123 4123 if helpType == 'Tutorials': 4124 4124 dlg = OpenTutorial(self.frame) … … 4479 4479 try: 4480 4480 vars['Starting_directory'][1] = path 4481 if GSASIIpath.GetConfigValue('debug'): print(' Saving GPX path: '+path)4481 if GSASIIpath.GetConfigValue('debug'): print('DBG_Saving GPX path: '+path) 4482 4482 SaveConfigVars(vars) 4483 4483 except KeyError: … … 4489 4489 try: 4490 4490 vars['Import_directory'][1] = path 4491 if GSASIIpath.GetConfigValue('debug'): print(' Saving Import path: '+path)4491 if GSASIIpath.GetConfigValue('debug'): print('DBG_Saving Import path: '+path) 4492 4492 SaveConfigVars(vars) 4493 4493 except KeyError: … … 4923 4923 if sys.platform.lower().startswith('win'): 4924 4924 pfx = '' 4925 #if GSASIIpath.GetConfigValue('debug'): print ' Help link=',pfx+helplink4925 #if GSASIIpath.GetConfigValue('debug'): print 'DBG_Help link=',pfx+helplink 4926 4926 if htmlFirstUse: 4927 4927 wb.open_new(pfx+helplink) … … 5362 5362 try: 5363 5363 vars['Tutorial_location'][1] = pth 5364 if GSASIIpath.GetConfigValue('debug'): print(' Saving Tutorial_location: '+pth)5364 if GSASIIpath.GetConfigValue('debug'): print('DBG_Saving Tutorial_location: '+pth) 5365 5365 GSASIIpath.SetConfigValue(vars) 5366 5366 SaveConfigVars(vars)
Note: See TracChangeset
for help on using the changeset viewer.