Changeset 3944


Ignore:
Timestamp:
May 2, 2019 1:00:36 PM (2 years ago)
Author:
toby
Message:

fix for vector rigid body display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r3943 r3944  
    20092009       
    20102010    def UpdateResidueRB(rbId=0):
    2011         AtInfo = data['Residue']['AtInfo']
    2012         refChoice = {}
    2013         RefObjs = []
    2014 
     2011        '''Draw the contents of the Residue Rigid Body tab for Rigid Bodies tree entry
     2012        '''
    20152013        def rbNameSizer(rbId,rbData):
    20162014
     
    20502048                Obj.SetValue(False)
    20512049                G2plt.PlotRigidBody(G2frame,'Residue',AtInfo,rbData,plotDefaults)
    2052            
     2050               
     2051            # start of rbNameSizer
    20532052            nameSizer = wx.BoxSizer(wx.HORIZONTAL)
    20542053            nameSizer.Add(wx.StaticText(ResidueRBDisplay,-1,'Residue name: '),
     
    23012300            wx.CallLater(100,UpdateResidueRB,rbId)
    23022301           
     2302        #----- beginning of UpdateResidueRB -----------------------------------------------
     2303        AtInfo = data['Residue']['AtInfo']
     2304        refChoice = {}
     2305        RefObjs = []
     2306
    23032307        GS = ResidueRBDisplay.GetSizer()
    23042308        if GS:
     
    23142318            return
    23152319        rbchoice = list(RBnames.keys())
    2316         ResidueRBSizer = wx.BoxSizer(wx.VERTICAL)
     2320        if GS:
     2321            ResidueRBSizer = GS
     2322        else:
     2323            ResidueRBSizer = wx.BoxSizer(wx.VERTICAL)
    23172324        if len(RBnames) > 1:
    23182325            selSizer = wx.BoxSizer(wx.HORIZONTAL)
Note: See TracChangeset for help on using the changeset viewer.