Changeset 4965 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Jun 21, 2021 11:32:01 AM (4 months ago)
Author:
toby
Message:

start work on option to move Phase/Data? to 1st level in tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r4956 r4965  
    698698                #    GSASIIpath.IPyBreak()
    699699            Id = G2frame.GPXtree.AppendItem(parent=G2frame.root,text=datum[0])
     700            if datum[0] == 'Phases' and GSASIIpath.GetConfigValue('SeparateHistPhaseTreeItem',False):
     701                G2frame.GPXtree.AppendItem(parent=G2frame.root,text='Hist/Phase Params')
    700702            if updateFromSeq and datum[0] == 'Phases':
    701703                for pdata in data[1:]:
     
    828830                data = []
    829831                name = G2frame.GPXtree.GetItemText(item)
     832                if name.startswith('Hist/Phase '):  # skip over this
     833                    item, cookie = G2frame.GPXtree.GetNextChild(G2frame.root, cookie)                           
     834                    continue
    830835                data.append([name,G2frame.GPXtree.GetItemPyData(item)])
    831836                item2, cookie2 = G2frame.GPXtree.GetFirstChild(item)
Note: See TracChangeset for help on using the changeset viewer.