Ignore:
Timestamp:
Jul 5, 2017 1:30:37 PM (4 years ago)
Author:
toby
Message:

improve window title; still working on help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIpwdGUI.py

    r2908 r2909  
    868868    G2frame.GPXtree.SetItemPyData(G2frame.PickId,data)
    869869    G2frame.PeakTable = G2G.Table(data['peaks'],rowLabels=rowLabels,colLabels=colLabels,types=Types)
    870     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Peak List')
     870    #G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Peak List')
     871    G2frame.SetTitle('Peak List')
    871872    G2frame.dataWindow.currentGrids = []
    872873    reflGrid = G2G.GSGrid(parent=G2frame.dataWindow)
     
    13471348    G2frame.ifGetExclude = False
    13481349    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.LimitMenu)
    1349     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Limits')
     1350    #G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Limits')
     1351    G2frame.SetTitle('Limits')
    13501352    G2frame.Bind(wx.EVT_MENU,OnLimitCopy,id=G2gd.wxID_LIMITCOPY)
    13511353    G2frame.Bind(wx.EVT_MENU,OnAddExcl,id=G2gd.wxID_ADDEXCLREGION)
     
    16841686    def MakeParameterWindow():
    16851687        'Displays the Instrument parameters in the dataWindow frame'
    1686         G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Instrument Parameters')
     1688        #G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Instrument Parameters')
     1689        G2frame.SetTitle('Instrument Parameters')
    16871690        mainSizer = G2frame.dataWindow.GetSizer()
    16881691        instSizer = wx.FlexGridSizer(0,6,5,5)
     
    23422345    histName = G2frame.GPXtree.GetItemText(G2frame.PatternId)
    23432346    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.SampleMenu)
    2344     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Sample Parameters')
     2347    #G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Sample Parameters')
     2348    G2frame.SetTitle('Sample Parameters')
    23452349    G2frame.Bind(wx.EVT_MENU, OnSetScale, id=G2gd.wxID_SETSCALE)
    23462350    G2frame.Bind(wx.EVT_MENU, OnSampleCopy, id=G2gd.wxID_SAMPLECOPY)
     
    26142618    G2frame.GPXtree.SetItemPyData(IndexId,data)
    26152619    G2frame.IndexPeaksTable = G2G.Table(data[0],rowLabels=rowLabels,colLabels=colLabels,types=Types)
    2616     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Index Peak List')
     2620    #G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Index Peak List')
     2621    G2frame.SetTitle('Index Peak List')
    26172622    G2frame.dataWindow.currentGrids = []
    26182623    G2frame.indxPeaks = G2G.GSGrid(parent=G2frame.dataWindow)               
     
    31083113            dlg.Destroy()
    31093114           
    3110     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Unit cells')
     3115    G2frame.SetTitle('Unit cells')
    31113116    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.IndexMenu)
    31123117    G2frame.Bind(wx.EVT_MENU, OnIndexPeaks, id=G2gd.wxID_INDEXPEAKS)
     
    34863491            return          #deleted phase?
    34873492        G2frame.RefList = phaseName
    3488         G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Reflection List for '+phaseName)
     3493        G2frame.SetTitle('Reflection List for '+phaseName)
    34893494        if HKLF:
    34903495            G2frame.GetStatusBar().SetStatusText('abs(DF)/sig > 10 red; > 3 yellow; twin < 0 (user rejected) red; twin=0 (sp. gp. absent) red')
     
    39213926    wave = G2mth.getWave(Inst)
    39223927    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.SubstanceMenu)
    3923     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Substances')
     3928    G2frame.SetTitle('Substances')
    39243929    G2frame.dataWindow.Bind(wx.EVT_MENU, OnLoadSubstance, id=G2gd.wxID_LOADSUBSTANCE)   
    39253930    G2frame.dataWindow.Bind(wx.EVT_MENU, OnReloadSubstances, id=G2gd.wxID_RELOADSUBSTANCES)   
     
    45804585    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.ModelMenu)
    45814586    G2frame.dataWindow.ClearData()
    4582     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Modelling')
     4587    G2frame.SetTitle('Modelling')
    45834588    G2frame.dataWindow.Bind(wx.EVT_MENU, OnCopyModel, id=G2gd.wxID_MODELCOPY)
    45844589    G2frame.dataWindow.Bind(wx.EVT_MENU, OnCopyFlags, id=G2gd.wxID_MODELCOPYFLAGS)
     
    51635168    Inst = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.PatternId, 'Instrument Parameters'))[0]
    51645169    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.REFDModelMenu)
    5165     G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Modelling')
     5170    G2frame.SetTitle('Modelling')
    51665171    G2frame.dataWindow.ClearData()
    51675172    G2frame.dataWindow.Bind(wx.EVT_MENU, OnCopyModel, id=G2gd.wxID_MODELCOPY)
Note: See TracChangeset for help on using the changeset viewer.