Ignore:
Timestamp:
Jul 7, 2017 2:37:33 PM (5 years ago)
Author:
vondreele
Message:

split status bar in 2; one for tree & the other for data window status

File:
1 edited

Legend:

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

    r2913 r2915  
    812812    # beginning of UpdatePeakGrid init
    813813    #======================================================================
    814     G2frame.GetStatusBar().SetStatusText('Global refine: select refine column & press Y or N')
     814    G2frame.GetStatusBar().SetStatusText('Global refine: select refine column & press Y or N',1)
    815815    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.PeakMenu)
    816816    G2frame.Bind(wx.EVT_MENU, OnAutoSearch, id=G2gd.wxID_AUTOSEARCH)
     
    19681968    if 'P' in insVal['Type']:                   #powder data menu commands
    19691969        G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.InstMenu)
    1970         G2frame.GetStatusBar().SetStatusText('NB: Azimuth is used for polarization only')
     1970        G2frame.GetStatusBar().SetStatusText('NB: Azimuth is used for polarization only',1)
    19711971        G2frame.Bind(wx.EVT_MENU,OnCalibrate,id=G2gd.wxID_INSTCALIB)
    19721972        G2frame.Bind(wx.EVT_MENU,OnLoad,id=G2gd.wxID_INSTLOAD)
     
    31073107                G2frame.GPXtree.SetItemPyData(sub, \
    31083108                    G2obj.SetNewPhase(Name=PhaseName,SGData=SGData,cell=cell[1:],Super=ssopt))
    3109                 G2frame.GetStatusBar().SetStatusText('Change space group from '+str(controls[13])+' if needed')
     3109                G2frame.GetStatusBar().SetStatusText('Change space group from '+str(controls[13])+' if needed',1)
    31103110        finally:
    31113111            dlg.Destroy()
     
    34913491        G2frame.SetTitle('Reflection List for '+phaseName)
    34923492        if HKLF:
    3493             G2frame.GetStatusBar().SetStatusText('abs(DF)/sig > 10 red; > 3 yellow; twin < 0 (user rejected) red; twin=0 (sp. gp. absent) red')
     3493            G2frame.GetStatusBar().SetStatusText('abs(DF)/sig > 10 red; > 3 yellow; twin < 0 (user rejected) red; twin=0 (sp. gp. absent) red',1)
    34943494        else:
    3495             G2frame.GetStatusBar().SetStatusText('Prfo < 0. in red; if excluded Fosq in red & mul < 0')
     3495            G2frame.GetStatusBar().SetStatusText('Prfo < 0. in red; if excluded Fosq in red & mul < 0',1)
    34963496        itof = 0
    34973497        if HKLF:
     
    46094609    if 'Size' in data['Current']:
    46104610        if 'MaxEnt' in data['Size']['Method']:
    4611             G2frame.GetStatusBar().SetStatusText('Size distribution by Maximum entropy')
     4611            G2frame.GetStatusBar().SetStatusText('Size distribution by Maximum entropy',1)
    46124612        elif 'IPG' in data['Size']['Method']:
    4613             G2frame.GetStatusBar().SetStatusText('Size distribution by Interior-Point Gradient')
     4613            G2frame.GetStatusBar().SetStatusText('Size distribution by Interior-Point Gradient',1)
    46144614        mainSizer.Add(SizeSizer())       
    46154615    elif 'Particle' in data['Current']:
     
    53655365                if item['Refine']:
    53665366                    G2frame.GetStatusBar().SetStatusText('Be sure Mult is close to anticipated value. '+   \
    5367                         'Suggest setting Flat Bkg. to 0 before Optimize Mult')
     5367                        'Suggest setting Flat Bkg. to 0 before Optimize Mult',1)
    53685368           
    53695369            def GetExposure(backFile):
     
    55395539                G2frame.ErrorDialog('PDF error','Chemical formula not defined')
    55405540                return
    5541             G2frame.GetStatusBar().SetStatusText('')
     5541            G2frame.GetStatusBar().SetStatusText('',1)
    55425542            wx.BeginBusyCursor()
    55435543            try:
     
    57575757                        olddata['Sample'] = sample
    57585758                    G2frame.GPXtree.SetItemPyData(G2gd.GetGPXtreeItemId(G2frame,id, 'PDF Controls'),olddata)
    5759                 G2frame.GetStatusBar().SetStatusText('PDF controls copied')
     5759                G2frame.GetStatusBar().SetStatusText('PDF controls copied',1)
    57605760        finally:
    57615761            dlg.Destroy()
     
    58415841            return
    58425842        auxPlot = computePDF(G2frame,data)
    5843         G2frame.GetStatusBar().SetStatusText('PDF computed')
     5843        G2frame.GetStatusBar().SetStatusText('PDF computed',1)
    58445844        for plot in auxPlot:
    58455845            XY = np.array(plot[:2])
     
    59135913        else:
    59145914            msg = '{}/{} PDFs computed'.format(N,len(Names))
    5915         G2frame.GetStatusBar().SetStatusText(msg)
     5915        G2frame.GetStatusBar().SetStatusText(msg,1)
    59165916        print(msg)
    59175917        # what item is being plotted? -- might be better to select from tree
     
    60966096                    olddata.update(copy.deepcopy(peaks))
    60976097                    G2frame.GPXtree.SetItemPyData(G2gd.GetGPXtreeItemId(G2frame,id, 'PDF Peaks'),olddata)
    6098                 G2frame.GetStatusBar().SetStatusText('PDF peaks copied')
     6098                G2frame.GetStatusBar().SetStatusText('PDF peaks copied',1)
    60996099        finally:
    61006100            dlg.Destroy()
Note: See TracChangeset for help on using the changeset viewer.