Changeset 2234 for trunk/GSASII.py


Ignore:
Timestamp:
May 1, 2016 10:46:45 PM (6 years ago)
Author:
toby
Message:

implement code to select appropriate tree time when a plot tab is selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2215 r2234  
    384384
    385385        :param bool load2Tree: indicates if the file should be loaded
    386           into the data tree immediately (used for images only)
     386          into the data tree immediately (used for images only). True
     387          only when called from :meth:`OnImportImage`; causes return
     388          value to change to a list of True values rather than
     389          reader objects.
    387390
    388391        :returns: a list of reader objects (rd_list) that were able
     
    22722275        plotFrame = wx.Frame(None,-1,'GSASII Plots',size=wx.Size(700,600), \
    22732276            style=wx.DEFAULT_FRAME_STYLE ^ wx.CLOSE_BOX)
    2274         self.G2plotNB = G2plt.G2PlotNoteBook(plotFrame)
    2275         #self.G2plotNB = G2plt.G2PlotNoteBook(plotFrame,G2frame=self)
     2277        #self.G2plotNB = G2plt.G2PlotNoteBook(plotFrame)
     2278        self.G2plotNB = G2plt.G2PlotNoteBook(plotFrame,G2frame=self)
    22762279        plotFrame.Show()
    22772280       
     
    23492352        self.LastGPXdir = None    # directory where a GPX file was last read
    23502353        self.LastExportDir = None  # the last directory used for exports, if any.
     2354        self.dataDisplayPhaseText = ''
    23512355       
    23522356        arg = sys.argv
     
    36973701                if dlg2.ShowModal() == wx.ID_OK:
    36983702                    Id = 0
    3699                     self.G2plotNB.setReplotFlags() # mark all plots as old
    37003703                    self.PatternTree.DeleteChildren(self.root)
    37013704                    self.HKL = []
     
    37083711                    self.PickId = Id
    37093712                    self.PatternTree.SelectItem(Id)
    3710                     G2gd.MovePatternTreeToGrid(self,Id)
    3711                     self.G2plotNB.replotAll() # refresh any plots not yet updated
     3713                    G2gd.MovePatternTreeToGrid(self,Id) # reload current tree item, should update current plot
    37123714            finally:
    37133715                dlg2.Destroy()
Note: See TracChangeset for help on using the changeset viewer.