Changeset 863 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Mar 13, 2013 10:43:09 AM (12 years ago)
Author:
vondreele
Message:

fix to notebook & comment (not allowed) editing
avoid a dead window problem with comments/notebook
fix atom editing problems with no rigid bodies
work on help text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIphsGUI.py

    r862 r863  
    916916                            if Atoms.GetColLabelValue(c) == 'refine':
    917917                                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
    920923                            else:
    921924                                atomData[r][c] = parms
     
    10991102                atId = atomData[row][-1]
    11001103                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)
    11061104                Atoms.SetReadOnly(row,colSS,True)                         #site sym
    11071105                Atoms.SetReadOnly(row,colSS+1,True)                       #Mult
     
    11251123                        Atoms.SetCellStyle(row,ci,VERY_LIGHT_GREY,True)
    11261124                        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)
    11271129            Atoms.AutoSizeColumns(False)
    11281130
     
    40754077    def OnShowBonds(event):
    40764078        generalData = data['General']
    4077         if generalData['Map']['Show bonds']:
     4079        if generalData['Map'].get('Show bonds',False):
    40784080            generalData['Map']['Show bonds'] = False
    40794081            G2frame.dataFrame.MapPeaksEdit.SetLabel(G2gd.wxID_SHOWBONDS,'Show bonds')
Note: See TracChangeset for help on using the changeset viewer.