Changeset 433


Ignore:
Timestamp:
Dec 6, 2011 4:17:59 PM (10 years ago)
Author:
vondreele
Message:

see mods to near bottom of UpdateDData (line 2609)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r432 r433  
    26072607            extSizer.Add(extVal,0,wx.ALIGN_CENTER_VERTICAL)
    26082608            return extSizer
    2609                                    
    2610         if DData.GetChildren():
    2611             dataDisplay = DData.GetChildren()[0]
    2612             mainSizer = dataDisplay.GetSizer()
    2613             mainSizer.Clear()
    2614         else:
    2615             dataDisplay = wx.Panel(DData)
    2616             mainSizer = wx.BoxSizer(wx.VERTICAL)
     2609#1 DData must be global but still this didn't work!                                     
     2610#        pageNo = self.dataDisplay.GetSelection()
     2611#        if self.dataDisplay.GetPageText(pageNo) == 'Data':
     2612#            self.dataDisplay.DeletePage(pageNo)
     2613#            DData = wx.ScrolledWindow(self.dataDisplay)
     2614#            self.dataDisplay.InsertPage(pageNo,DData,'Data')
     2615#            self.dataDisplay.ChangeSelection(pageNo)
     2616#2 This works but overwrites new sizer stuff on top of old stuff  both still active
     2617#        if DData.GetChildren():
     2618#            dataDisplay = DData.GetChildren()[0]
     2619#            mainSizer = dataDisplay.GetSizer()
     2620#            mainSizer.Clear()
     2621#        else:
     2622#            dataDisplay = wx.Panel(DData)
     2623#            mainSizer = wx.BoxSizer(wx.VERTICAL)
     2624
     2625#        DData.DestroyChildren()        #not doing this is equiv to #2 above
     2626        dataDisplay = wx.Panel(DData)
     2627        mainSizer = wx.BoxSizer(wx.VERTICAL)
    26172628        mainSizer.Add(wx.StaticText(dataDisplay,-1,'Histogram data for '+PhaseName+':'),0,wx.ALIGN_CENTER_VERTICAL)
    26182629        mainSizer.Add(PlotSizer())           
     
    27092720
    27102721        dataDisplay.SetSizer(mainSizer,True)
    2711         mainSizer.FitInside(self.dataFrame)
     2722        mainSizer.Fit(self.dataFrame)
    27122723        Size = mainSizer.GetMinSize()
    27132724        Size[0] += 40
Note: See TracChangeset for help on using the changeset viewer.