Changeset 4041
- Timestamp:
- Jun 26, 2019 11:12:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r4020 r4041 1730 1730 print ('Rigid body UNKRB added') 1731 1731 text.close() 1732 UpdateResidueRB( rbId)1732 UpdateResidueRB() 1733 1733 1734 1734 def FindNeighbors(Orig,XYZ,atTypes,atNames,AtInfo): … … 1796 1796 rbData['rbSeq'].append([Orig,Piv,0.0,Riding]) 1797 1797 dlg.Destroy() 1798 UpdateResidueRB( rbId)1798 UpdateResidueRB() 1799 1799 1800 1800 def UpdateVectorRB(Scroll=0): … … 2011 2011 VectorRB.Scroll(0,Scroll) 2012 2012 2013 def UpdateResidueRB( rbId=0):2013 def UpdateResidueRB(): 2014 2014 '''Draw the contents of the Residue Rigid Body tab for Rigid Bodies tree entry 2015 2015 ''' 2016 global rbId 2016 2017 def rbNameSizer(rbId,rbData): 2017 2018 … … 2019 2020 Obj = event.GetEventObject() 2020 2021 rbData['RBname'] = Obj.GetValue() 2021 wx.CallAfter(UpdateResidueRB ,rbId)2022 wx.CallAfter(UpdateResidueRB) 2022 2023 2023 2024 def OnDelRB(event): … … 2045 2046 rbData['rbXYZ'] = newXYZ 2046 2047 G2plt.PlotRigidBody(G2frame,'Residue',AtInfo,rbData,plotDefaults) 2047 wx.CallAfter(UpdateResidueRB ,rbId)2048 wx.CallAfter(UpdateResidueRB) 2048 2049 2049 2050 def OnPlotRB(event): … … 2226 2227 rbId,Seq = Indx[Obj.GetId()] 2227 2228 data['Residue'][rbId]['rbSeq'].remove(Seq) 2228 wx.CallAfter(UpdateResidueRB ,rbId)2229 wx.CallAfter(UpdateResidueRB) 2229 2230 2230 2231 seqSizer = wx.FlexGridSizer(0,5,2,2) … … 2299 2300 2300 2301 def OnSelect(event): 2302 global rbId 2301 2303 rbname = rbchoice[select.GetSelection()] 2302 2304 rbId = RBnames[rbname] 2303 wx.CallLater(100,UpdateResidueRB ,rbId)2305 wx.CallLater(100,UpdateResidueRB) 2304 2306 2305 2307 #----- beginning of UpdateResidueRB ----------------------------------------------- … … 2333 2335 selSizer.Add(select,0) 2334 2336 ResidueRBSizer.Add(selSizer,0) 2335 if not rbId: 2337 try: 2338 if not rbId: 2339 rbId = RBnames[rbchoice[0]] 2340 except NameError: 2336 2341 rbId = RBnames[rbchoice[0]] 2337 2342 rbData = data['Residue'][rbId]
Note: See TracChangeset
for help on using the changeset viewer.