Changeset 2915


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

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

Location:
branch/2frame
Files:
7 edited

Legend:

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

    r2909 r2915  
    625625    finally:
    626626        wx.EndBusyCursor()
    627         G2frame.Status.SetStatusText('Mouse RB click item to refresh/raise; RB drag/drop to reorder')
     627        G2frame.Status.SetStatusText('Mouse RB drag/drop to reorder',0)
    628628   
    629629def ProjFileSave(G2frame):
  • branch/2frame/GSASIIconstrGUI.py

    r2914 r2915  
    11181118
    11191119    def SetStatusLine(text):
    1120         G2frame.GetStatusBar().SetStatusText(text)                                     
     1120        G2frame.GetStatusBar().SetStatusText(text,1)                                     
    11211121       
    11221122    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.ConstraintMenu)
     
    20822082       
    20832083    def SetStatusLine(text):
    2084         G2frame.GetStatusBar().SetStatusText(text)                                     
     2084        G2frame.GetStatusBar().SetStatusText(text,1)                                     
    20852085
    20862086    G2gd.SetDataMenuBar(G2frame,G2frame.dataWindow.RigidBodyMenu)
  • branch/2frame/GSASIIdataGUI.py

    r2914 r2915  
    6969
    7070# define Ids for wx menu items
     71commonTrans = {'abc':np.eye(3),'a-cb':np.array([[1.,0.,0.],[0.,0.,-1.],[0.,1.,0.]]),
     72    'ba-c':np.array([[0.,1.,0.],[1.,0.,0.],[0.,0.,-1.]]),'-cba':np.array([[0.,0.,-1.],[0.,1.,0.],[1.,0.,0.]]),
     73    'bca':np.array([[0.,1.,0.],[0.,0.,1.],[1.,0.,0.]]),'cab':np.array([[0.,0.,1.],[1.,0.,0.],[0.,1.,0.]]),
     74    'R->H':np.array([[1.,-1.,0.],[0.,1.,-1.],[1.,1.,1.]]),'H->R':np.array([[2./3,1./3,1./3],[-1./3,1./3,1./3],[-1./3,-2./3,1./3]]),
     75    'P->A':np.array([[-1.,0.,0.],[0.,-1.,1.],[0.,1.,1.]]),'R->O':np.array([[-1.,0.,0.],[0.,-1.,0.],[0.,0.,1.]]),
     76    'P->B':np.array([[-1.,0.,1.],[0.,-1.,0.],[1.,0.,1.]]),'B->P':np.array([[-.5,0.,.5],[0.,-1.,0.],[.5,0.,.5]]),
     77    'P->C':np.array([[1.,1.,0.],[1.,-1.,0.],[0.,0.,-1.]]),'C->P':np.array([[.5,.5,0.],[.5,-.5,0.],[0.,0.,-1.]]),
     78    'P->F':np.array([[-1.,1.,1.],[1.,-1.,1.],[1.,1.,-1.]]),'F->P':np.array([[0.,.5,.5],[.5,0.,.5],[.5,.5,0.]]),   
     79    'P->I':np.array([[0.,1.,1.],[1.,0.,1.],[1.,1.,0.]]),'I->P':np.array([[-.5,.5,.5],[.5,-.5,.5],[.5,.5,-.5]]),   
     80    'A->P':np.array([[-1.,0.,0.],[0.,-.5,.5],[0.,.5,.5]]),'O->R':np.array([[-1.,0.,0.],[0.,-1.,0.],[0.,0.,1.]]),
     81    'abc*':np.eye(3), }
     82commonNames = ['abc','bca','cab','a-cb','ba-c','-cba','P->A','A->P','P->B','B->P','P->C','C->P',
     83    'P->I','I->P','P->F','F->P','H->R','R->H','R->O','O->R','abc*','setting 1->2']          #don't put any new ones after the setting one!
    7184def Define_wxId(*args):
    7285    '''routine to create unique global wx Id symbols in current module.
     
    112125   
    113126    '''       
    114     commonTrans = {'abc':np.eye(3),'a-cb':np.array([[1.,0.,0.],[0.,0.,-1.],[0.,1.,0.]]),
    115         'ba-c':np.array([[0.,1.,0.],[1.,0.,0.],[0.,0.,-1.]]),'-cba':np.array([[0.,0.,-1.],[0.,1.,0.],[1.,0.,0.]]),
    116         'bca':np.array([[0.,1.,0.],[0.,0.,1.],[1.,0.,0.]]),'cab':np.array([[0.,0.,1.],[1.,0.,0.],[0.,1.,0.]]),
    117         'R->H':np.array([[1.,-1.,0.],[0.,1.,-1.],[1.,1.,1.]]),'H->R':np.array([[2./3,1./3,1./3],[-1./3,1./3,1./3],[-1./3,-2./3,1./3]]),
    118         'P->A':np.array([[-1.,0.,0.],[0.,-1.,1.],[0.,1.,1.]]),'R->O':np.array([[-1.,0.,0.],[0.,-1.,0.],[0.,0.,1.]]),
    119         'P->B':np.array([[-1.,0.,1.],[0.,-1.,0.],[1.,0.,1.]]),'B->P':np.array([[-.5,0.,.5],[0.,-1.,0.],[.5,0.,.5]]),
    120         'P->C':np.array([[1.,1.,0.],[1.,-1.,0.],[0.,0.,-1.]]),'C->P':np.array([[.5,.5,0.],[.5,-.5,0.],[0.,0.,-1.]]),
    121         'P->F':np.array([[-1.,1.,1.],[1.,-1.,1.],[1.,1.,-1.]]),'F->P':np.array([[0.,.5,.5],[.5,0.,.5],[.5,.5,0.]]),   
    122         'P->I':np.array([[0.,1.,1.],[1.,0.,1.],[1.,1.,0.]]),'I->P':np.array([[-.5,.5,.5],[.5,-.5,.5],[.5,.5,-.5]]),   
    123         'A->P':np.array([[-1.,0.,0.],[0.,-.5,.5],[0.,.5,.5]]),'O->R':np.array([[-1.,0.,0.],[0.,-1.,0.],[0.,0.,1.]]),
    124         'abc*':np.eye(3), }
    125     commonNames = ['abc','bca','cab','a-cb','ba-c','-cba','P->A','A->P','P->B','B->P','P->C','C->P',
    126         'P->I','I->P','P->F','F->P','H->R','R->H','R->O','O->R','abc*','setting 1->2']          #don't put any new ones after the setting one!
    127127               
    128128    def __init__(self,parent,data):
     
    28422842        self.MacroStatusList = []  # logging
    28432843        self.Status = self.CreateStatusBar()
     2844        self.Status.SetFieldsCount(2)
    28442845        # Bob: note different ways to display the SplitterWindow. I like the 3d effect on the Mac
    28452846        # as it makes the splitter bar a bit easier to "grab" -- this might need to be platform selected.
     
    28552856        self.dataWindow.SetSizer(dataSizer)
    28562857        self.mainPanel.SplitVertically(self.treePanel, self.dataWindow, 200)
     2858        self.Status.SetStatusWidths([200,-1])   # make these match?
    28572859       
    28582860        wxID_PATTERNTREE = wx.NewId()
     
    60356037       
    60366038    if 'SVD' in data['deriv type']:
    6037         G2frame.GetStatusBar().SetStatusText('Hessian SVD not recommended for initial refinements; use analytic Hessian or Jacobian')
     6039        G2frame.GetStatusBar().SetStatusText('Hessian SVD not recommended for initial refinements; use analytic Hessian or Jacobian',1)
    60386040    else:
    6039         G2frame.GetStatusBar().SetStatusText('')
     6041        G2frame.GetStatusBar().SetStatusText('',1)
    60406042    G2frame.dataWindow.ClearData()
    60416043    G2frame.dataWindow.SetupScrolling()
     
    68866888    if G2frame.dataDisplay:
    68876889        G2frame.dataDisplay.Destroy()
    6888     G2frame.GetStatusBar().SetStatusText("Select column to export; Double click on column to plot data; on row for Covariance")
     6890    G2frame.GetStatusBar().SetStatusText("Select column to export; Double click on column to plot data; on row for Covariance",1)
    68896891    sampleParms = GetSampleParms()
    68906892
     
    69446946    #G2frame.dataWindow.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Sequential refinement results')
    69456947    G2frame.SetTitle('Sequential refinement results')
    6946     G2frame.GetStatusBar().SetStatusText('')
     6948    G2frame.GetStatusBar().SetStatusText('',1)
    69476949    G2frame.Bind(wx.EVT_MENU, OnRenameSelSeq, id=wxID_RENAMESEQSEL)
    69486950    G2frame.Bind(wx.EVT_MENU, OnSaveSelSeq, id=wxID_SAVESEQSEL)
  • branch/2frame/GSASIIddataGUI.py

    r2911 r2915  
    855855            useBox.Add(lebail,0,WACV)
    856856            if UseList[G2frame.hist]['LeBail']:
    857                 G2frame.SetStatusText('To reset LeBail, cycle LeBail check box.')
     857                G2frame.SetStatusText('To reset LeBail, cycle LeBail check box.',1)
    858858        bottomSizer.Add(useBox,0,WACV|wx.TOP|wx.BOTTOM|wx.LEFT,5)
    859859       
     
    961961    # Beginning of UpdateDData execution here
    962962    ######################################################################
    963     G2frame.SetStatusText('')
     963    G2frame.SetStatusText('',1)
    964964    keyList = G2frame.GetHistogramNames(['PWDR','HKLF'])
    965965    UseList = data['Histograms']
  • branch/2frame/GSASIIimgGUI.py

    r2911 r2915  
    164164
    165165    def OnCalibrate(event):
    166         G2frame.GetStatusBar().SetStatusText('Select > 4 points on 1st used ring; LB to pick (shift key to force pick), RB on point to delete else RB to finish')
     166        G2frame.GetStatusBar().SetStatusText('Select > 4 points on 1st used ring; LB to pick (shift key to force pick), RB on point to delete else RB to finish',1)
    167167        G2frame.ifGetRing = True
    168168               
     
    15641564    G2frame.Bind(wx.EVT_MENU, OnNewFrameMask, id=G2gd.wxID_NEWMASKFRAME)
    15651565    if G2frame.MaskKey == 'f':
    1566         G2frame.GetStatusBar().SetStatusText('Frame mask active - LB pick next point, RB close polygon')
     1566        G2frame.GetStatusBar().SetStatusText('Frame mask active - LB pick next point, RB close polygon',1)
    15671567    elif G2frame.MaskKey == 'p':
    1568         G2frame.GetStatusBar().SetStatusText('Polygon mask active - LB pick next point, RB close polygon')
     1568        G2frame.GetStatusBar().SetStatusText('Polygon mask active - LB pick next point, RB close polygon',1)
    15691569    elif G2frame.MaskKey == 'a':
    1570         G2frame.GetStatusBar().SetStatusText('Arc mask active - LB pick arc location')
     1570        G2frame.GetStatusBar().SetStatusText('Arc mask active - LB pick arc location',1)
    15711571    elif G2frame.MaskKey == 'r':
    1572         G2frame.GetStatusBar().SetStatusText('Ring mask active - LB pick ring location')
     1572        G2frame.GetStatusBar().SetStatusText('Ring mask active - LB pick ring location',1)
    15731573    else:
    1574         G2frame.GetStatusBar().SetStatusText("To add mask: press a,r,s,p or f on 2D image for arc/ring/spot/polygon/frame")
     1574        G2frame.GetStatusBar().SetStatusText("To add mask: press a,r,s,p or f on 2D image for arc/ring/spot/polygon/frame",1)
    15751575    mainSizer = G2frame.dataWindow.GetSizer()
    15761576    mainSizer.Add((5,10),0)
     
    21432143    G2frame.Bind(wx.EVT_MENU, OnStrStaSample, id=G2gd.wxID_STRSTSAMPLE)       
    21442144    if G2frame.StrainKey == 'a':    #probably doesn't happen
    2145         G2frame.GetStatusBar().SetStatusText('Add strain ring active - LB pick d-zero value')
     2145        G2frame.GetStatusBar().SetStatusText('Add strain ring active - LB pick d-zero value',1)
    21462146    else:
    2147         G2frame.GetStatusBar().SetStatusText("To add strain data: On 2D Powder Image, key a:add ring")
     2147        G2frame.GetStatusBar().SetStatusText("To add strain data: On 2D Powder Image, key a:add ring",1)
    21482148       
    21492149    mainSizer = G2frame.dataWindow.GetSizer()
  • branch/2frame/GSASIIphsGUI.py

    r2913 r2915  
    336336    :param phase: phase data
    337337   
    338     #NB: commonNames & commonTrans defined at top of this file
     338    #NB: commonNames & commonTrans defined in GSASIIdataGUI = G2gd
    339339    '''
    340340    def __init__(self,parent,phase):
     
    375375                self.Phase['General']['SGData'] = SGData
    376376            else:
    377                 if self.Common == commonNames[-1]:      #change setting
     377                if self.Common == G2gd.commonNames[-1]:      #change setting
    378378                    self.Vec = G2spc.spg2origins[self.oldSpGrp]
    379379                    self.newSpGrp = self.oldSpGrp
    380380                else:
    381                     self.Trans = commonTrans[self.Common]
     381                    self.Trans = G2gd.commonTrans[self.Common]
    382382                    if 'R' == self.Common[-1]:
    383383                        self.newSpGrp += ' r'
     
    447447        commonSizer.Add(wx.StaticText(self.panel,label=' Common transformations: '),0,WACV)
    448448        if self.oldSpGrp not in G2spc.spg2origins:
    449             common = wx.ComboBox(self.panel,value=self.Common,choices=commonNames[:-1],
     449            common = wx.ComboBox(self.panel,value=self.Common,choices=G2gd.commonNames[:-1],
    450450                style=wx.CB_READONLY|wx.CB_DROPDOWN)
    451451        else:
    452             common = wx.ComboBox(self.panel,value=self.Common,choices=commonNames,
     452            common = wx.ComboBox(self.panel,value=self.Common,choices=G2gd.commonNames,
    453453                style=wx.CB_READONLY|wx.CB_DROPDOWN)
    454454        common.Bind(wx.EVT_COMBOBOX,OnCommon)
     
    23192319            G2G.HorizontalLine(mainSizer,General)
    23202320            mainSizer.Add(MCSASizer())
    2321         G2frame.GetStatusBar().SetStatusText('')
     2321        G2frame.GetStatusBar().SetStatusText('',1)
    23222322        SetPhaseWindow(General,mainSizer,Scroll=Scroll)
    23232323       
     
    26192619            if not (event.AltDown() or (event.ShiftDown() and event.ControlDown())):
    26202620                Atoms.frm = -1
    2621                 G2frame.GetStatusBar().SetStatusText('')                   
     2621                G2frame.GetStatusBar().SetStatusText('',1)                   
    26222622            if r < 0 and c < 0:
    26232623                if Atoms.IsSelection():
     
    26482648                            Atoms.SelectRow(r,True)
    26492649                            n = colLabels.index('Name')
    2650                             G2frame.GetStatusBar().SetStatusText('Atom '+atomData[r][n]+' is to be moved')
     2650                            G2frame.GetStatusBar().SetStatusText('Atom '+atomData[r][n]+' is to be moved',1)
    26512651                        else:                       #move it
    26522652                            item = atomData.pop(Atoms.frm)
    26532653                            atomData.insert(r,item)
    26542654                            Atoms.frm = -1
    2655                             G2frame.GetStatusBar().SetStatusText('')
     2655                            G2frame.GetStatusBar().SetStatusText('',1)
    26562656                            wx.CallAfter(Paint)
    26572657                else:
     
    28152815            Types = Types[:7]+3*[wg.GRID_VALUE_FLOAT+':10,4',]+Types[7:]
    28162816        SGData = data['General']['SGData']
    2817         G2frame.GetStatusBar().SetStatusText('')
     2817        G2frame.GetStatusBar().SetStatusText('',1)
    28182818        if SGData['SGPolax']:
    2819             G2frame.GetStatusBar().SetStatusText('Warning: The location of the origin is arbitrary in '+SGData['SGPolax'])
     2819            G2frame.GetStatusBar().SetStatusText('Warning: The location of the origin is arbitrary in '+SGData['SGPolax'],1)
    28202820        Atoms.Bind(wg.EVT_GRID_CELL_CHANGE, ChangeAtomCell)
    28212821        Atoms.Bind(wg.EVT_GRID_CELL_LEFT_DCLICK, AtomTypeSelect)
     
    31283128            atom = atomData[ind]
    31293129            if atom[ci+8] in rbAtmDict:
    3130                 G2frame.GetStatusBar().SetStatusText('**** ERROR - atom is in a rigid body and can not be deleted ****')
     3130                G2frame.GetStatusBar().SetStatusText('**** ERROR - atom is in a rigid body and can not be deleted ****',1)
    31313131            else:
    31323132                if atom[ci+8] in HydIds:    #remove Hs from Hatom update dict
     
    43144314        if len(Layers['Layers']):
    43154315            layerNames = [layer['Name'] for layer in Layers['Layers']]
    4316         G2frame.GetStatusBar().SetStatusText('')
     4316        G2frame.GetStatusBar().SetStatusText('',1)
    43174317        layerData = G2frame.layerData
    43184318        if layerData.GetSizer():
     
    46174617        Indx = {}
    46184618        waveData = G2frame.waveData
    4619         G2frame.GetStatusBar().SetStatusText('')
     4619        G2frame.GetStatusBar().SetStatusText('',1)
    46204620        generalData = data['General']
    46214621        SGData = generalData['SGData']
     
    49834983            'atNames':atNames,'rbRef':[0,1,2,False],'rbSeq':[],'SelSeq':[0,0],'useCount':0}
    49844984        RBData['RBIds']['Residue'].append(rbId)
    4985         G2frame.GetStatusBar().SetStatusText('New rigid body UNKRB added to set of Residue rigid bodies')
     4985        G2frame.GetStatusBar().SetStatusText('New rigid body UNKRB added to set of Residue rigid bodies',1)
    49864986
    49874987################################################################################
     
    51225122
    51235123        # UpdateDrawAtoms executable code starts here
    5124         G2frame.GetStatusBar().SetStatusText('')
     5124        G2frame.GetStatusBar().SetStatusText('',1)
    51255125        generalData = data['General']
    51265126        SetupDrawingData()
     
    52335233        if indx:
    52345234            if len(indx) > 1:
    5235                 G2frame.GetStatusBar().SetStatusText('Select Custom Color, change color, Add to Custom Colors, then OK')
     5235                G2frame.GetStatusBar().SetStatusText('Select Custom Color, change color, Add to Custom Colors, then OK',1)
    52365236            else:
    5237                 G2frame.GetStatusBar().SetStatusText('Change color, Add to Custom Colors, then OK')
     5237                G2frame.GetStatusBar().SetStatusText('Change color, Add to Custom Colors, then OK',1)
    52385238            atomData = data['Drawing']['Atoms']
    52395239            cx,ct,cs,ci = data['Drawing']['atomPtrs']
     
    52625262            drawAtoms.ClearSelection()
    52635263            dlg.Destroy()
    5264             G2frame.GetStatusBar().SetStatusText('')
     5264            G2frame.GetStatusBar().SetStatusText('',1)
    52655265            G2plt.PlotStructure(G2frame,data)
    52665266           
     
    60776077        drawingData = data['Drawing']
    60786078
    6079         G2frame.GetStatusBar().SetStatusText('')
     6079        G2frame.GetStatusBar().SetStatusText('',1)
    60806080        if drawOptions.GetSizer():
    60816081            drawOptions.GetSizer().Clear(True)
     
    63446344        # UpdateTexture executable starts here
    63456345        if Texture.GetSizer(): Texture.GetSizer().Clear(True)
    6346         G2frame.GetStatusBar().SetStatusText('')
     6346        G2frame.GetStatusBar().SetStatusText('',1)
    63476347        generalData = data['General']       
    63486348        SGData = generalData['SGData']
     
    65446544       
    65456545    def OnDataUse(event):
    6546         hist = G2frame.hist
     6546#        hist = G2frame.hist
    65476547        if data['Histograms']:
    65486548            dlg = G2G.G2MultiChoiceDialog(G2frame, 'Use histograms',
     
    70307030           
    70317031        def VecrbSizer(RBObj):
    7032             G2frame.GetStatusBar().SetStatusText('NB: Rotation vector is in crystallographic space')
     7032            G2frame.GetStatusBar().SetStatusText('NB: Rotation vector is in crystallographic space',1)
    70337033                   
    70347034            def OnDelVecRB(event):
     
    71067106        if 'macro' in general['Type']:
    71077107            atomStyle = 'sticks'
    7108         G2frame.GetStatusBar().SetStatusText('')
     7108        G2frame.GetStatusBar().SetStatusText('',1)
    71097109        mainSizer = wx.BoxSizer(wx.VERTICAL)
    71107110        if not data['RBModels']:
     
    71317131            G2frame.bottomSizer.Add(ResrbSizer(rbObj))
    71327132            mainSizer.Add(G2frame.bottomSizer)
    7133             G2frame.GetStatusBar().SetStatusText('NB: Rotation vector is in crystallographic space')
     7133            G2frame.GetStatusBar().SetStatusText('NB: Rotation vector is in crystallographic space',1)
    71347134            G2plt.PlotStructure(G2frame,data)
    71357135        if 'Vector' in data['RBModels'] and len(data['RBModels']['Vector']):
     
    71747174    def OnRBAssign(event):
    71757175       
    7176         G2frame.GetStatusBar().SetStatusText('')
     7176        G2frame.GetStatusBar().SetStatusText('',1)
    71777177        RBData = G2frame.GPXtree.GetItemPyData(   
    71787178            G2gd.GetGPXtreeItemId(G2frame,G2frame.root,'Rigid bodies'))
     
    79987998#        if 'macro' in general['Type']:
    79997999#            atomStyle = 'sticks'
    8000         G2frame.GetStatusBar().SetStatusText('')
     8000        G2frame.GetStatusBar().SetStatusText('',1)
    80018001        mainSizer = wx.BoxSizer(wx.VERTICAL)
    80028002        if not data['MCSA']['Models']:
     
    82398239           
    82408240        # FillPawleyReflectionsGrid executable starts here
    8241         G2frame.GetStatusBar().SetStatusText('To delete a Pawley reflection: select row & press Delete')                       
     8241        G2frame.GetStatusBar().SetStatusText('To delete a Pawley reflection: select row & press Delete',1)                       
    82428242        generalData = data['General']
    82438243        if 'Pawley ref' in data:
     
    85518551            G2plt.PlotStructure(G2frame,data)                   
    85528552           
    8553         G2frame.GetStatusBar().SetStatusText('')
     8553        G2frame.GetStatusBar().SetStatusText('',1)
    85548554        if 'Map Peaks' in data:
    8555             G2frame.GetStatusBar().SetStatusText('Double click any column heading to sort')
     8555            G2frame.GetStatusBar().SetStatusText('Double click any column heading to sort',1)
    85568556            mapPeaks = data['Map Peaks']                       
    85578557            rowLabels = []
  • 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.