Ignore:
Timestamp:
Feb 15, 2017 12:49:18 PM (5 years ago)
Author:
vondreele
Message:

some code layout changes
rework ShowLSParms to allow selection for display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r2691 r2707  
    651651        if not varList:
    652652            G2frame.ErrorDialog('No variables','There are no variables of type '+vartype,
    653                                 parent=G2frame.dataFrame)
     653                parent=G2frame.dataFrame)
    654654            return
    655655        l2 = l1 = 1
     
    684684        if not varList:
    685685            G2frame.ErrorDialog('No variables','There are no variables of type '+vartype,
    686                                 parent=G2frame.dataFrame)
     686                parent=G2frame.dataFrame)
    687687            return
    688688#        legend = "Select variables to make equivalent (only one of the variables will be varied when all are set to be varied)"
     
    697697        if not varList:
    698698            G2frame.ErrorDialog('No variables','There are no variables of type '+vartype,
    699                                 parent=G2frame.dataFrame)
     699                parent=G2frame.dataFrame)
    700700            return
    701701#        legend = "Select atoms to make equivalent (only one of the atom variables will be varied when all are set to be varied)"
     
    710710        if not varList:
    711711            G2frame.ErrorDialog('No variables','There are no variables of type '+vartype,
    712                                 parent=G2frame.dataFrame)
     712                parent=G2frame.dataFrame)
    713713            return
    714714#        legend = "Select atoms to ride (only one of the atom variables will be varied when all are set to be varied)"
     
    723723        if not varList:
    724724            G2frame.ErrorDialog('No variables','There are no variables of type '+vartype,
    725                                 parent=G2frame.dataFrame)
     725                parent=G2frame.dataFrame)
    726726            return
    727727#        legend = "Select variables to include in a new variable (the new variable will be varied when all included variables are varied)"
     
    736736        if not varList:
    737737            G2frame.ErrorDialog('No variables','There are no variables of type '+vartype,
    738                                 parent=G2frame.dataFrame)
     738                parent=G2frame.dataFrame)
    739739            return
    740740#        legend = "Select variables to include in a constraint equation (the values will be constrainted to equal a specified constant)"
     
    754754        varListlbl = [fmt.format(i,*G2obj.VarDescr(i)) for i in varList]       
    755755        dlg = G2G.G2SingleChoiceDialog(G2frame.dataFrame,'Select 1st variable:',
    756                                       title1,varListlbl,
    757                                       monoFont=True,size=(625,400))
     756            title1,varListlbl,monoFont=True,size=(625,400))
    758757        dlg.CenterOnParent()
    759758        if dlg.ShowModal() == wx.ID_OK:
     
    804803        AtNames.sort()
    805804        dlg = G2G.G2SingleChoiceDialog(G2frame.dataFrame,'Select 1st atom:',
    806                                       title1,AtNames,
    807                                       monoFont=True,size=(625,400))
     805            title1,AtNames,monoFont=True,size=(625,400))
    808806        dlg.CenterOnParent()
    809807        FrstAtom = ''
     
    878876        :returns: wx.Sizer created by method
    879877        '''
     878        #TODO: show symmetry generated constraints - no clue how to do this.
    880879        constSizer = wx.FlexGridSizer(0,6,0,0)
    881880        maxlen = 70 # characters before wrapping a constraint
Note: See TracChangeset for help on using the changeset viewer.