Changeset 2856 for trunk/GSASIIgrid.py


Ignore:
Timestamp:
Jun 4, 2017 12:20:02 PM (4 years ago)
Author:
vondreele
Message:

fix bug in drawatom add via "sphere" enclosure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r2854 r2856  
    413413        self.Drawing = drawing
    414414        self.indx = indx
    415         self.Sphere = 1.0
     415        self.Sphere = [1.0,]
    416416        self.centers = []
    417417        self.atomTypes = [[item,True] for item in self.General['AtomTypes']]
     
    447447        sphereSizer = wx.BoxSizer(wx.HORIZONTAL)
    448448        sphereSizer.Add(wx.StaticText(self.panel,label=' Sphere radius: '),0,WACV)
    449         radius = G2G.ValidatedTxtCtrl(self.panel,self.Sphere,nDig=(10,3),size=(65,25))
     449        radius = G2G.ValidatedTxtCtrl(self.panel,self.Sphere,0,nDig=(10,3),size=(65,25))
    450450        sphereSizer.Add(radius,0,WACV)
    451451        mainSizer.Add(sphereSizer,0,WACV)
     
    482482            if atm[1]:
    483483                used.append(str(atm[0]))
    484         return self.centers,self.Sphere,used
     484        return self.centers,self.Sphere[0],used
    485485
    486486    def OnOk(self,event):
Note: See TracChangeset for help on using the changeset viewer.