Changeset 2559


Ignore:
Timestamp:
Dec 5, 2016 9:13:43 AM (5 years ago)
Author:
vondreele
Message:

fixed for missing Status bar C++ errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r2558 r2559  
    36733673        G2frame.dataFrame.Clear()
    36743674    Inst = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,G2frame.PatternId, 'Instrument Parameters'))[0]
     3675    if not G2frame.dataFrame.GetStatusBar():
     3676        Status = G2frame.dataFrame.CreateStatusBar()   
    36753677    if HKLF:
    36763678        G2gd.SetDataMenuBar(G2frame)
    36773679        G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.ReflMenu)
    3678         if not G2frame.dataFrame.GetStatusBar():
    3679             Status = G2frame.dataFrame.CreateStatusBar()   
    36803680        G2frame.Bind(wx.EVT_MENU, OnPlotHKL, id=G2gd.wxID_PWDHKLPLOT)
    36813681        G2frame.Bind(wx.EVT_MENU, OnPlot3DHKL, id=G2gd.wxID_PWD3DHKLPLOT)
     
    36833683    else:
    36843684        G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.ReflMenu)
    3685         if not G2frame.dataFrame.GetStatusBar():
    3686             Status = G2frame.dataFrame.CreateStatusBar()   
    36873685        G2frame.Bind(wx.EVT_MENU, OnSelectPhase, id=G2gd.wxID_SELECTPHASE)
    36883686        G2frame.Bind(wx.EVT_MENU, OnPlotHKL, id=G2gd.wxID_PWDHKLPLOT)
     
    51495147        auxPlot = ComputePDF(data)
    51505148#        print 'Done calculating PDF:'
     5149        if not G2frame.dataFrame.GetStatusBar():
     5150            Status = G2frame.dataFrame.CreateStatusBar()
    51515151        Status.SetStatusText('PDF computed')
    51525152        for plot in auxPlot:
     
    51715171                    ComputePDF(Data)                   
    51725172                id, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie)
     5173            if not G2frame.dataFrame.GetStatusBar():
     5174                Status = G2frame.dataFrame.CreateStatusBar()
    51735175            Status.SetStatusText('All PDFs computed')
    51745176            G2plt.PlotISFG(G2frame,newPlot=True,type='I(Q)')
Note: See TracChangeset for help on using the changeset viewer.