Changeset 863 for trunk/GSASIIphsGUI.py
- Timestamp:
- Mar 13, 2013 10:43:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIphsGUI.py ¶
r862 r863 916 916 if Atoms.GetColLabelValue(c) == 'refine': 917 917 rbExcl = rbAtmDict.get(atomData[r][-1],'') 918 for excl in rbExcl: 919 atomData[r][c] = parms.replace(excl,'') 918 if rbExcl: 919 for excl in rbExcl: 920 atomData[r][c] = parms.replace(excl,'') 921 else: 922 atomData[r][c] = parms 920 923 else: 921 924 atomData[r][c] = parms … … 1099 1102 atId = atomData[row][-1] 1100 1103 rbExcl = rbAtmDict.get(atId,'') 1101 if 'X' in rbExcl:1102 for c in range(0,colX+3):1103 if c != colR:1104 Atoms.SetCellStyle(row,c,VERY_LIGHT_GREY,True)1105 Atoms.SetReadOnly(row,colType,True)1106 1104 Atoms.SetReadOnly(row,colSS,True) #site sym 1107 1105 Atoms.SetReadOnly(row,colSS+1,True) #Mult … … 1125 1123 Atoms.SetCellStyle(row,ci,VERY_LIGHT_GREY,True) 1126 1124 Atoms.SetCellTextColour(row,ci,VERY_LIGHT_GREY) 1125 if 'X' in rbExcl: 1126 for c in range(0,colX+3): 1127 if c != colR: 1128 Atoms.SetCellStyle(row,c,VERY_LIGHT_GREY,True) 1127 1129 Atoms.AutoSizeColumns(False) 1128 1130 … … 4075 4077 def OnShowBonds(event): 4076 4078 generalData = data['General'] 4077 if generalData['Map'] ['Show bonds']:4079 if generalData['Map'].get('Show bonds',False): 4078 4080 generalData['Map']['Show bonds'] = False 4079 4081 G2frame.dataFrame.MapPeaksEdit.SetLabel(G2gd.wxID_SHOWBONDS,'Show bonds')
Note: See TracChangeset
for help on using the changeset viewer.