Changeset 2890 for branch/2frame/GSASIIrestrGUI.py
- Timestamp:
- Jul 1, 2017 11:17:10 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/2frame/GSASIIrestrGUI.py
r2888 r2890 763 763 764 764 wtBox = wx.BoxSizer(wx.HORIZONTAL) 765 wtBox.Add(wx.StaticText(wind,-1,'Restraint weight factor: '),0,wx.ALIGN_CENTER_VERTICAL)765 wtBox.Add(wx.StaticText(wind,-1,'Restraint weight factor: '),0,wx.ALIGN_CENTER_VERTICAL) 766 766 wtfactor = G2G.ValidatedTxtCtrl(wind,restData,'wtFactor',nDig=(10,2),typeHint=float) 767 767 wtBox.Add(wtfactor,0,wx.ALIGN_CENTER_VERTICAL) … … 771 771 wtBox.Add(useData,0,wx.ALIGN_CENTER_VERTICAL) 772 772 if 'Bonds' in restData or 'Angles' in restData: 773 wtBox.Add(wx.StaticText(wind,-1,' Search range: '),0,wx.ALIGN_CENTER_VERTICAL)773 wtBox.Add(wx.StaticText(wind,-1,' Search range: '),0,wx.ALIGN_CENTER_VERTICAL) 774 774 sRange = G2G.ValidatedTxtCtrl(wind,restData,'Range',nDig=(10,2),typeHint=float) 775 775 wtBox.Add(sRange,0,wx.ALIGN_CENTER_VERTICAL) 776 wtBox.Add(wx.StaticText(wind,-1,' (x sum(atom radii)'),0,wx.ALIGN_CENTER_VERTICAL)776 wtBox.Add(wx.StaticText(wind,-1,' x sum(atom radii)'),0,wx.ALIGN_CENTER_VERTICAL) 777 777 return wtBox 778 778 … … 931 931 932 932 BondRestr.SetSizer(mainSizer) 933 Size = mainSizer.Fit( G2frame.dataFrame)933 Size = mainSizer.Fit(BondRestr) 934 934 Size[0] = 600 935 935 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big … … 1062 1062 1063 1063 AngleRestr.SetSizer(mainSizer) 1064 Size = mainSizer.Fit( G2frame.dataFrame)1064 Size = mainSizer.Fit(AngleRestr) 1065 1065 Size[0] = 600 1066 1066 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big … … 1189 1189 1190 1190 PlaneRestr.SetSizer(mainSizer) 1191 Size = mainSizer.Fit( G2frame.dataFrame)1191 Size = mainSizer.Fit(PlaneRestr) 1192 1192 Size[0] = 600 1193 1193 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big … … 1320 1320 1321 1321 ChiralRestr.SetSizer(mainSizer) 1322 Size = mainSizer.Fit( G2frame.dataFrame)1322 Size = mainSizer.Fit(ChiralRestr) 1323 1323 Size[0] = 600 1324 1324 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big … … 1441 1441 1442 1442 TorsionRestr.SetSizer(mainSizer) 1443 Size = mainSizer.Fit( G2frame.dataFrame)1443 Size = mainSizer.Fit(TorsionRestr) 1444 1444 Size[0] = 600 1445 1445 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big … … 1564 1564 1565 1565 RamaRestr.SetSizer(mainSizer) 1566 Size = mainSizer.Fit( G2frame.dataFrame)1566 Size = mainSizer.Fit(RamaRestr) 1567 1567 Size[0] = 600 1568 1568 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big … … 1697 1697 1698 1698 ChemCompRestr.SetSizer(mainSizer) 1699 Size = mainSizer.Fit( G2frame.dataFrame)1699 Size = mainSizer.Fit(ChemCompRestr) 1700 1700 Size[0] = 600 1701 1701 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big … … 1770 1770 mainSizer.Add(wx.StaticText(TextureRestr,-1,'No texture restraints for this phase'),0,) 1771 1771 TextureRestr.SetSizer(mainSizer) 1772 Size = mainSizer.Fit( G2frame.dataFrame)1772 Size = mainSizer.Fit(TextureRestr) 1773 1773 Size[0] = 600 1774 1774 Size[1] = min(Size[1]+50,500) #make room for tab, but not too big
Note: See TracChangeset
for help on using the changeset viewer.