Changeset 4667 for trunk


Ignore:
Timestamp:
Dec 2, 2020 11:18:21 AM (12 months ago)
Author:
vondreele
Message:

Add '?' help button to upper right hand corner of various PWDR data entries (e.g. Limits, Background). Each points to its respective entry in the Help document.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4594 r4667  
    16821682    G2frame.dataWindow.ClearData()
    16831683    mainSizer = G2frame.dataWindow.GetSizer()
     1684    topSizer = wx.BoxSizer(wx.HORIZONTAL)
     1685    topSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Background used in refinement'),0,WACV)
     1686    # add help button to bring up help web page - at right sede of window
     1687    topSizer.Add((-1,-1),1,WACV|wx.EXPAND)
     1688    topSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=G2frame.dataWindow.helpKey))
     1689    mainSizer.Add(topSizer,0,WACV|wx.EXPAND)
    16841690    mainSizer.Add(BackSizer())
    16851691    mainSizer.Add((0,5),0)
     
    17641770        G2frame.dataWindow.ClearData()
    17651771        mainSizer = G2frame.dataWindow.GetSizer()
    1766         mainSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Data used in refinement'),0,WACV)
     1772        topSizer = wx.BoxSizer(wx.HORIZONTAL)
     1773        topSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Data used in refinement'),0,WACV)
     1774        # add help button to bring up help web page - at right sede of window
     1775        topSizer.Add((-1,-1),1,WACV|wx.EXPAND)
     1776        topSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=G2frame.dataWindow.helpKey))
     1777        mainSizer.Add(topSizer,0,WACV|wx.EXPAND)
    17671778        mainSizer.Add((5,5))
    17681779        mainSizer.Add(LimitSizer())
     
    21732184        text = ' Histogram Type: %s  Bank: %d'%(insVal['Type'],insVal['Bank'])
    21742185        subSizer.Add(wx.StaticText(G2frame.dataWindow,-1,text),0,WACV)
    2175         mainSizer.Add(subSizer)
     2186        # add help button to bring up help web page - at right sede of window
     2187        subSizer.Add((-1,-1),1,WACV|wx.EXPAND)
     2188        subSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=G2frame.dataWindow.helpKey))
     2189        mainSizer.Add(subSizer,0,WACV|wx.EXPAND)
     2190#        mainSizer.Add(subSizer)
    21762191        labelLst[:],elemKeysLst[:],dspLst[:],refFlgElem[:] = [],[],[],[]
    21772192        if 'P' in insVal['Type']:                   #powder data
     
    29072922    mainSizer = G2frame.dataWindow.GetSizer()
    29082923    topSizer = wx.BoxSizer(wx.HORIZONTAL)
     2924    topSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Sample and Experimental Parameters'))
     2925    # add help button to bring up help web page - at right sede of window
    29092926    topSizer.Add((-1,-1),1,WACV|wx.EXPAND)
    2910     topSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Sample and Experimental Parameters'))
    2911     # add help button to bring up help web page
    2912     helpkey = G2frame.dataWindow.helpKey
    2913     topSizer.Add((30,-1))
    2914     topSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=helpkey))
    2915     topSizer.Add((-1,-1),1,WACV|wx.EXPAND)
     2927    topSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=G2frame.dataWindow.helpKey))
    29162928    mainSizer.Add(topSizer,0,WACV|wx.EXPAND)
    29172929    nameSizer = wx.BoxSizer(wx.HORIZONTAL)
     
    43774389    G2frame.dataWindow.ClearData()
    43784390    mainSizer = G2frame.dataWindow.GetSizer()
    4379     mainSizer.Add(wx.StaticText(parent=G2frame.dataWindow,label=' Indexing controls: '),0,WACV)
     4391    topSizer = wx.BoxSizer(wx.HORIZONTAL)
     4392    topSizer.Add(wx.StaticText(parent=G2frame.dataWindow,label=' Indexing controls: '),0,WACV)
     4393    # add help button to bring up help web page - at right sede of window
     4394    topSizer.Add((-1,-1),1,WACV|wx.EXPAND)
     4395    topSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=G2frame.dataWindow.helpKey))
     4396    mainSizer.Add(topSizer,0,WACV|wx.EXPAND)
    43804397    mainSizer.Add((5,5),0)
    43814398    littleSizer = wx.FlexGridSizer(0,5,5,5)
Note: See TracChangeset for help on using the changeset viewer.