Changeset 3862


Ignore:
Timestamp:
Mar 27, 2019 10:33:29 AM (3 years ago)
Author:
vondreele
Message:

Add column to sequential results table - number (0-nRows). Makes finding specific row easier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3860 r3862  
    60506050            pickId = G2frame.PickId
    60516051            G2frame.PickId = G2frame.PatternId = GetGPXtreeItemId(G2frame, G2frame.root, name)
    6052             G2plt.PlotPatterns(G2frame,newPlot=True,plotType='PWDR')
     6052            G2plt.PlotPatterns(G2frame,newPlot=False,plotType='PWDR')
    60536053            G2frame.PickId = pickId
    60546054        elif rows:
     
    67776777#        print (r,val)
    67786778        G2frame.SeqTable.SetValue(r,0, val)
    6779 
     6779       
    67806780    def OnSelectUpdate(event):
    67816781        '''Update all phase parameters from a selected column in the Sequential Table.
     
    70487048    histNames = foundNames
    70497049    nRows = len(histNames)
    7050     G2frame.colList = [nRows*[True]]
    7051     G2frame.colSigs = [None,]
    7052     colLabels = ['Use',]
    7053     Types = [wg.GRID_VALUE_BOOL,]
     7050    G2frame.colList = [range(nRows),nRows*[True]]
     7051    G2frame.colSigs = [None,None,]
     7052    colLabels = ['No.','Use',]
     7053    Types = [wg.GRID_VALUE_LONG,wg.GRID_VALUE_BOOL,]
    70547054    # start with Rwp values
    70557055    if 'IMG ' not in histNames[0][:4]:
     
    73487348    for c in range(len(colLabels)):
    73497349        for r in range(nRows):
    7350             if c:
     7350            if c == 1:
     7351                G2frame.dataDisplay.SetReadOnly(r,c,isReadOnly=False)
     7352            else:
    73517353                G2frame.dataDisplay.SetReadOnly(r,c,isReadOnly=True)
    7352             else:
    7353                 G2frame.dataDisplay.SetReadOnly(r,c,isReadOnly=False)
    73547354    if 'phoenix' in wx.version():
    73557355        G2frame.dataDisplay.Bind(wg.EVT_GRID_CELL_CHANGED, OnCellChange)
Note: See TracChangeset for help on using the changeset viewer.