Changeset 185


Ignore:
Timestamp:
Dec 1, 2010 12:02:56 PM (13 years ago)
Author:
vondreele
Message:

testpos & atom color fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r173 r185  
    772772        try:
    773773            drawData = data['Drawing']
    774             x,y,z = drawData['testPos']
     774            x,y,z = drawData['testPos'][0]
    775775            AtomAdd(x,y,z)
    776776        except:
     
    805805        if 'Drawing' in data:
    806806            drawData = data['Drawing']
    807             x,y,z = drawData['testPos']
     807            x,y,z = drawData['testPos'][0]
    808808            AtomAdd(x,y,z)
    809809            FillAtomsGrid()
     
    930930            'bondRadius':0.1,'ballScale':0.33,'vdwScale':0.67,'ellipseProb':50,'sizeH':0.50,
    931931            'unitCellBox':False,'showABC':True,'selectedAtoms':[],
    932             'Rotation':[0.0,0.0,0.0,[]],'bondList':{},'testPos':[-.1,-.1,-.1]}
     932            'Rotation':[0.0,0.0,0.0,[]],'bondList':{},'testPos':[[-.1,-.1,-.1],[0.0,0.0,0.0],[0,0]]}
    933933        try:
    934934            drawingData = data['Drawing']
     
    12481248           
    12491249    def DrawAtomColor(event):
     1250
    12501251        indx = drawAtoms.GetSelectedRows()
    12511252        if indx:
     1253            if len(indx) > 1:
     1254                self.dataFrame.SetStatusText('Select Custom Color, change color, Add to Custom Colors, then OK')
     1255            else:
     1256                self.dataFrame.SetStatusText('Change color, Add to Custom Colors, then OK')
    12521257            generalData = data['General']
    12531258            atomData = data['Drawing']['Atoms']
     
    12791284            drawAtoms.ClearSelection()
    12801285            dlg.Destroy()
     1286            self.dataFrame.SetStatusText('')
    12811287           
    12821288    def ResetAtomColors(event):
Note: See TracChangeset for help on using the changeset viewer.