Ignore:
Timestamp:
Oct 17, 2020 5:49:37 PM (2 years ago)
Author:
toby
Message:

add help to Orientation reference controls; improve helpbutton formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r4603 r4604  
    30183018                    Indx[refSel.GetId()] = i
    30193019                    refAtmSizer.Add(refSel,0,WACV)
     3020                    refHelpInfo = '''
     3021The Orientation reference control is used to tranform
     3022the Cartesian
     3023axes for rigid bodies with three atoms, A, B and C.
     3024The vector from A to B defines the x-axis and the z axis is placed
     3025in the plane defined by A to B and A to C.
     3026'''
     3027                hlp = G2G.HelpButton(VectorRBDisplay,refHelpInfo,wrap=400)
     3028                refAtmSizer.Add(hlp,0,wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,2)
    30203029            return refAtmSizer
    30213030                       
     
    33723381                RefObjs.append(refObj)
    33733382                if 'molCent' not in rbData: rbData['molCent'] = False           #patch
    3374                 molcent = wx.Button(ResidueRBDisplay,label=' Use RB center?')
     3383                molcent = wx.Button(ResidueRBDisplay,label=' Center RB?')
    33753384                molcent.Bind(wx.EVT_BUTTON,OnMolCent)
    33763385                Indx[molcent.GetId()] = resGrid
    33773386                refAtmSizer.Add(molcent,0,WACV)
     3387                refHelpInfo = '''
     3388* The "Orientation Reference" control is used to tranform
     3389the Cartesian
     3390axes for rigid bodies with three atoms, A, B and C.
     3391The vector from A to B defines the x-axis and the z axis is placed
     3392in the plane defined by A to B and A to C.
     3393
     3394%%* The "Center RB?" button will redefine the origin of the
     3395rigid body to the midpoint of all atoms in the body (not mass weighted)
     3396'''
     3397                hlp = G2G.HelpButton(ResidueRBDisplay,refHelpInfo,wrap=400)
     3398                refAtmSizer.Add(hlp,0,wx.LEFT|wx.RIGHT|wx.ALIGN_CENTER_VERTICAL,2)
    33783399           
    33793400            mainSizer = wx.BoxSizer(wx.VERTICAL)
Note: See TracChangeset for help on using the changeset viewer.