Ignore:
Timestamp:
Aug 22, 2019 10:23:18 AM (2 years ago)
Author:
toby
Message:

add plotting of rings & ring picks; load parms into each image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4104 r4108  
    39193919            name = self.GPXtree.GetItemText(item)
    39203920            if name[:4] in ['PWDR','HKLF','IMG ','PDF ','SASD','REFD']:
    3921                 if not Id: Id = item
     3921                if not Id:
     3922                    if name[:4] == 'IMG ':
     3923                        Id = GetGPXtreeItemId(self,item,'Image Controls')
     3924                    else:
     3925                        Id = item
    39223926            elif name == "Phases":
    39233927                phaseId = item
     
    39353939            self.GPXtree.SelectItem(Id)  # needed on OSX or item is not selected in tree; perhaps not needed elsewhere
    39363940        elif phaseId:
    3937             SelectDataTreeItem(self,phaseId)
    3938             self.GPXtree.SelectItem(phaseId) # as before for OSX
     3941            Id = phaseId
     3942            # open 1st phase
     3943            Id, unused = self.GPXtree.GetFirstChild(phaseId)
     3944            SelectDataTreeItem(self,Id)
     3945            self.GPXtree.SelectItem(Id) # as before for OSX
    39393946        self.CheckNotebook()
    39403947        if self.dirname: os.chdir(self.dirname)           # to get Mac/Linux to change directory!
     
    40954102            return
    40964103        else:
    4097             if not self.OnFileSave(event):
    4098                 return
     4104            if not self.OnFileSave(event): return
    40994105        FrameInfo = {'Main_Pos':tuple(self.GetPosition()),
    41004106                     'Main_Size':tuple(self.GetSize()),
Note: See TracChangeset for help on using the changeset viewer.