Changeset 3856


Ignore:
Timestamp:
Mar 16, 2019 8:46:42 AM (4 years ago)
Author:
vondreele
Message:

small mods to GUI for general restraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIrestrGUI.py

    r3826 r3856  
    19011901            parmDict = SetupParmDict(G2frame)
    19021902            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'):
    19041904                GridSiz.Add(
    19051905                    wx.StaticText(GeneralRestr,wx.ID_ANY,lbl,style=wx.CENTER),
     
    19121912            for i,rest in enumerate(generalRestData['General']):
    19131913                eq = rest[0]
    1914                 txt = eq.expression
     1914                txt = eq.expression+' ='
    19151915                if len(txt) > 50:
    19161916                    txt = txt[:47]+'... '
    19171917                GridSiz.Add(wx.StaticText(GeneralRestr,wx.ID_ANY,txt))
    19181918                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)
    19201920                    )
    19211921                # evaluate the expression
     
    19281928                GridSiz.Add(wx.StaticText(GeneralRestr,wx.ID_ANY,txt))
    19291929                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)
    19311931                    )
    19321932                btn = wx.Button(GeneralRestr, wx.ID_ANY,"Edit",size=(40,-1))
Note: See TracChangeset for help on using the changeset viewer.