Changeset 3856
- Timestamp:
- Mar 16, 2019 8:46:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIrestrGUI.py
r3826 r3856 1901 1901 parmDict = SetupParmDict(G2frame) 1902 1902 GridSiz = wx.FlexGridSizer(0,7,10,2) 1903 for lbl in ('expression ','target\nvalue','current\nvalue','esd'):1903 for lbl in ('expression =','target\nvalue','current\nvalue','esd'): 1904 1904 GridSiz.Add( 1905 1905 wx.StaticText(GeneralRestr,wx.ID_ANY,lbl,style=wx.CENTER), … … 1912 1912 for i,rest in enumerate(generalRestData['General']): 1913 1913 eq = rest[0] 1914 txt = eq.expression 1914 txt = eq.expression+' =' 1915 1915 if len(txt) > 50: 1916 1916 txt = txt[:47]+'... ' 1917 1917 GridSiz.Add(wx.StaticText(GeneralRestr,wx.ID_ANY,txt)) 1918 1918 GridSiz.Add( 1919 G2G.ValidatedTxtCtrl(GeneralRestr,rest,1,nDig=(10, 2),typeHint=float)1919 G2G.ValidatedTxtCtrl(GeneralRestr,rest,1,nDig=(10,3,'g'),typeHint=float) 1920 1920 ) 1921 1921 # evaluate the expression … … 1928 1928 GridSiz.Add(wx.StaticText(GeneralRestr,wx.ID_ANY,txt)) 1929 1929 GridSiz.Add( 1930 G2G.ValidatedTxtCtrl(GeneralRestr,rest,2,nDig=(10, 1),typeHint=float)1930 G2G.ValidatedTxtCtrl(GeneralRestr,rest,2,nDig=(10,3,'g'),typeHint=float) 1931 1931 ) 1932 1932 btn = wx.Button(GeneralRestr, wx.ID_ANY,"Edit",size=(40,-1))
Note: See TracChangeset
for help on using the changeset viewer.