Changeset 3065 for trunk/GSASIIconstrGUI.py
- Timestamp:
- Sep 11, 2017 3:58:13 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r3061 r3065 392 392 l2 = max(l2,len(i2)) 393 393 fmt = "{:"+str(l1)+"s} {:"+str(l2)+"s} {:s}" 394 atchoice = G2obj.SortVariables([fmt.format(*i1) for i1 in choices])394 atchoices = [fmt.format(*i1) for i1 in choices] # reformat list as str with columns 395 395 dlg = G2G.G2MultiChoiceDialog( 396 396 G2frame,legend, 397 'Constrain '+str(FrstVarb)+' with...',atchoice ,397 'Constrain '+str(FrstVarb)+' with...',atchoices, 398 398 toggle=False,size=(625,400),monoFont=True) 399 399 dlg.CenterOnParent() … … 709 709 ''' 710 710 #varListlbl = ["("+i+") "+G2obj.fmtVarDescr(i) for i in varList] 711 if constType == 'equivalence': 712 omitVars = G2mv.GetDependentVars() 713 else: 714 omitVars = [] 715 varList = G2obj.SortVariables([i for i in varList if i not in omitVars]) 711 716 l2 = l1 = 1 712 717 for i in varList: … … 715 720 l2 = max(l2,len(loc)) 716 721 fmt = "{:"+str(l1)+"s} {:"+str(l2)+"s} {:s}" 717 if constType == 'equivalence':718 omitVars = G2mv.GetDependentVars()719 else:720 omitVars = []721 varList = G2obj.SortVariables([i for i in varList if i not in omitVars])722 722 varListlbl = [fmt.format(i,*G2obj.VarDescr(i)) for i in varList] 723 723 dlg = G2G.G2SingleChoiceDialog(G2frame,'Select 1st variable:',
Note: See TracChangeset
for help on using the changeset viewer.