Ignore:
Timestamp:
Jul 6, 2017 3:09:41 PM (4 years ago)
Author:
toby
Message:

implement restraint tab selection menu; fix restraint scroll bar problem (remove/comment all DestroyChildren?); consolidate menu generation

File:
1 edited

Legend:

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

    r2911 r2913  
    320320        self.plotList = []
    321321        self.panelList = []
    322         self.status.DestroyChildren()
     322        self.status.DestroyChildren() #get rid of special stuff on status bar
    323323       
    324324    def Rename(self,oldName,newName):
     
    18621862                                           (G2frame,newPlot,plotType),kwargs)
    18631863    # now start plotting
    1864     G2frame.G2plotNB.status.DestroyChildren()
     1864    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    18651865    Page.tickDict = {}
    18661866    DifLine = ['']
     
    23572357            if ref[6+im] > 0.:
    23582358                DS.append((ref[5+im]-ref[7+im])/ref[6+im])
    2359     G2frame.G2plotNB.status.DestroyChildren()
     2359    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    23602360    DS.sort()
    23612361    EDS = np.zeros_like(DS)
     
    25792579        Page.Offset = [0,0]
    25802580   
    2581     G2frame.G2plotNB.status.DestroyChildren()
     2581    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    25822582    if Peaks == None:
    25832583        if G2frame.Contour:
     
    27992799   
    28002800    Page.Choice = None
    2801     G2frame.G2plotNB.status.DestroyChildren()
     2801    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    28022802    Plot.set_title(Title)
    28032803    Plot.set_xlabel(r'd-spacing',fontsize=14)
     
    30473047    Page.keyPress = OnKeyPress
    30483048    Page.SetFocus()
    3049     G2frame.G2plotNB.status.DestroyChildren()
     3049    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    30503050    Nxy = Z.shape
    30513051    Zmax = np.max(Z)
     
    31053105   
    31063106    Page.Choice = None
    3107     G2frame.G2plotNB.status.DestroyChildren()
     3107    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    31083108    Plot.set_title('Strain')
    31093109    Plot.set_ylabel(r'd-spacing',fontsize=14)
     
    38703870        Page.canvas.mpl_connect('motion_notify_event', OnMotion)
    38713871        Page.canvas.mpl_connect('key_press_event', OnPlotKeyPress)
    3872     G2frame.G2plotNB.status.DestroyChildren()
     3872    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    38733873    General = data['General']
    38743874    cx,ct,cs,cia = General['AtomPtrs']
     
    39563956    title = G2obj.StripUnicode(' for\n'+Data['title'],'') # matplotlib 1.x does not like unicode
    39573957    newAtomDict = Data.get('newAtomDict',{})
    3958     G2frame.G2plotNB.status.DestroyChildren()
     3958    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    39593959
    39603960    def OnPlotKeyPress(event):
     
    50795079    Page.Choice = None
    50805080    Title = G2frame.GPXtree.GetItemText(G2frame.Image)[4:]
    5081     G2frame.G2plotNB.status.DestroyChildren()
     5081    G2frame.G2plotNB.status.DestroyChildren() #get rid of special stuff on status bar
    50825082    if G2frame.logPlot:
    50835083        Title = 'log('+Title+')'
Note: See TracChangeset for help on using the changeset viewer.