Changeset 2593 for trunk/GSASII.py


Ignore:
Timestamp:
Dec 17, 2016 9:24:00 PM (5 years ago)
Author:
toby
Message:

Add Pawley settings menu item; open Phases and selected data tree item on GPX open

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2586 r2593  
    32203220       
    32213221        Id = 0
     3222        phaseId = None
    32223223        G2IO.ProjFileOpen(self)
    32233224        self.PatternTree.SetItemText(self.root,'Loaded Data: '+self.GSASprojectfile)
     
    32293230            if name[:4] in ['PWDR','HKLF','IMG ','PDF ','SASD',]:
    32303231                Id = item
     3232            elif name == "Phases":
     3233                phaseId = item
    32313234            elif name == 'Controls':
    32323235                data = self.PatternTree.GetItemPyData(item)
     
    32383241            self.EnablePlot = True
    32393242            self.PatternTree.SelectItem(Id)
     3243            self.PatternTree.Expand(Id)
     3244        elif phaseId:
     3245            self.PatternTree.SelectItem(phaseId)
     3246        if phaseId:
     3247            self.PatternTree.Expand(phaseId)
    32403248        self.CheckNotebook()
    32413249        if self.dirname: os.chdir(self.dirname)           # to get Mac/Linux to change directory!
Note: See TracChangeset for help on using the changeset viewer.