Changeset 862
- Timestamp:
- Mar 2, 2013 9:19:42 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIgrid.py
r859 r862 60 60 [ wxID_ATOMSEDITADD, wxID_ATOMSEDITINSERT, wxID_ATOMSEDITDELETE, wxID_ATOMSREFINE, 61 61 wxID_ATOMSMODIFY, wxID_ATOMSTRANSFORM, wxID_ATOMSVIEWADD, wxID_ATOMVIEWINSERT, 62 wxID_RELOADDRAWATOMS,wxID_ATOMSDISAGL,wxID_ATOMMOVE,wxID_RBAPPEND, 62 wxID_RELOADDRAWATOMS,wxID_ATOMSDISAGL,wxID_ATOMMOVE,wxID_RBAPPEND,wxID_ATOMSREIMPORT, 63 63 wxID_ASSIGNATMS2RB 64 ] = [wx.NewId() for item in range(1 3)]64 ] = [wx.NewId() for item in range(14)] 65 65 66 66 [ wxID_DRAWATOMSTYLE, wxID_DRAWATOMLABEL, wxID_DRAWATOMCOLOR, wxID_DRAWATOMRESETCOLOR, … … 1142 1142 self.AtomEdit.Append(id=wxID_RELOADDRAWATOMS, kind=wx.ITEM_NORMAL,text='Reload draw atoms', 1143 1143 help='Reload atom drawing list') 1144 self.AtomEdit.Append(id=wxID_ATOMSREIMPORT, kind=wx.ITEM_NORMAL,text='Reimport atoms', 1145 help='Reimport atoms from file; sequence must match') 1144 1146 self.AtomCompute.Append(id=wxID_ATOMSDISAGL, kind=wx.ITEM_NORMAL,text='Distances && Angles', 1145 1147 help='Compute distances & angles for selected atoms') -
trunk/GSASIIphsGUI.py
r861 r862 1507 1507 except KeyError: # inside DistAngle for missing atom types in DisAglCtls 1508 1508 print '**** ERROR - try again but do "Reset" to fill in missing atom types ****' 1509 1510 def OnReImport(event): 1511 # sort of the right idea but don't want new tree entry! 1512 # G2frame._Add_ImportMenu_Phase(G2frame.dataFrame.AtomEdit) 1513 print 'reimport atoms from file to be developed' 1509 1514 1510 1515 ################################################################################ … … 3062 3067 G2gd.GetPatternTreeItemId(G2frame,G2frame.root,'Rigid bodies')) 3063 3068 Indx = {} 3069 atomStyle = 'balls & sticks' 3070 if 'macro' in general['Type']: 3071 atomStyle = 'sticks' 3064 3072 3065 3073 def OnThermSel(event): #needs to be seen by VecRbSizer! … … 3140 3148 data['Atoms'][AtLookUp[id]][cx:cx+3] = newXYZ[i] 3141 3149 data['Drawing']['Atoms'] = [] 3142 UpdateDrawAtoms( 'balls & sticks')3150 UpdateDrawAtoms(atomStyle) 3143 3151 G2plt.PlotStructure(G2frame,data) 3144 3152 except ValueError: … … 3166 3174 data['Atoms'][AtLookUp[id]][cx:cx+3] = newXYZ[i] 3167 3175 data['Drawing']['Atoms'] = [] 3168 UpdateDrawAtoms( 'balls & sticks')3176 UpdateDrawAtoms(atomStyle) 3169 3177 G2plt.PlotStructure(G2frame,data) 3170 3178 except ValueError: … … 3224 3232 Obj.SetValue("%10.3f"%(RBObj['Torsions'][item][0])) 3225 3233 data['Drawing']['Atoms'] = [] 3226 UpdateDrawAtoms( 'balls & sticks')3234 UpdateDrawAtoms(atomStyle) 3227 3235 drawAtoms.ClearSelection() 3228 3236 G2plt.PlotStructure(G2frame,data) … … 4293 4301 G2frame.dataFrame.Bind(wx.EVT_MENU, OnReloadDrawAtoms, id=G2gd.wxID_RELOADDRAWATOMS) 4294 4302 G2frame.dataFrame.Bind(wx.EVT_MENU, OnDistAngle, id=G2gd.wxID_ATOMSDISAGL) 4303 G2frame.dataFrame.Bind(wx.EVT_MENU, OnReImport, id=G2gd.wxID_ATOMSREIMPORT) 4295 4304 FillAtomsGrid(Atoms) 4296 4305 elif text == 'General':
Note: See TracChangeset
for help on using the changeset viewer.