- Timestamp:
- Oct 20, 2016 10:03:57 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASII.py ¶
r2491 r2498 765 765 raise Exception('Unexpected histogram '+str(histoName)) 766 766 wx.EndBusyCursor() 767 self.EnableRefineCommand() 767 768 return # success 768 769 … … 952 953 ref[3] = 0 953 954 wx.EndBusyCursor() 954 955 self.EnableRefineCommand() 955 956 return # success 956 957 … … 1444 1445 self.ErrorDialog('Read Error', 1445 1446 'Error opening/reading file '+str(instfile)) 1447 def EnableRefineCommand(self): 1448 haveData = False 1449 # check for phases connected to histograms 1450 sub = G2gd.GetPatternTreeItemId(self,self.root,'Phases') 1451 if not sub: return 1452 item, cookie = self.PatternTree.GetFirstChild(sub) 1453 while item: # loop over phases 1454 data = self.PatternTree.GetItemPyData(item) 1455 item, cookie = self.PatternTree.GetNextChild(sub, cookie) 1456 UseList = data['Histograms'] 1457 if UseList: haveData = True 1458 if haveData: 1459 self.dataFrame.DataMenu.Enable(G2gd.wxID_DATADELETE,True) 1460 for item in self.Refine: item.Enable(True) 1461 else: 1462 self.dataFrame.DataMenu.Enable(G2gd.wxID_DATADELETE,False) 1463 for item in self.Refine: item.Enable(False) 1464 1446 1465 1447 1466 def OnImportPowder(self,event): … … 1637 1656 G2gd.GetPatternTreeItemId(self,Id,'Reflection Lists')) 1638 1657 refList[generalData['Name']] = [] 1658 self.EnableRefineCommand() 1639 1659 return # success 1640 1660 … … 1802 1822 G2gd.GetPatternTreeItemId(self,Id,'Reflection Lists')) 1803 1823 refList[generalData['Name']] = [] 1824 self.EnableRefineCommand() 1804 1825 return # success 1805 1826 -
TabularUnified trunk/GSASIIctrls.py ¶
r2431 r2498 4021 4021 if os.path.exists(os.path.join(self.tutorialPath,i[0],i[1]))] 4022 4022 if not indices: 4023 G2MessageBox(self,'There are no downloaded tutorials','None downloaded') 4023 G2MessageBox(self, 4024 'There are no downloaded tutorials in '+self.tutorialPath, 4025 'None downloaded') 4024 4026 return 4025 4027 choices = [tutorialCatalog[i][2] for i in indices]
Note: See TracChangeset
for help on using the changeset viewer.