Ignore:
Timestamp:
Jul 30, 2017 3:01:17 PM (4 years ago)
Author:
vondreele
Message:

oops - forgot the SetSizer? in SetPhaseWindow?
make SetScrollRate?(0,0) the default for GSGrid - grids have no scroll bars
remove all those individual SetScrollRates? everywhere a GSGrid is made - all did same thing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIpwdGUI.py

    r2938 r2950  
    881881#    G2frame.dataWindow.Bind(wg.EVT_GRID_CELL_LEFT_DCLICK, onCellListDClick)
    882882    reflGrid.AutoSizeColumns(False)
    883     reflGrid.SetScrollRate(0,0)
     883#    reflGrid.SetScrollRate(0,0)
    884884    G2frame.reflGrid = reflGrid
    885885    mainSizer.Add(reflGrid)         #,1,wx.ALL|wx.EXPAND,1)
     
    11771177            debyeTable = G2G.Table(data[1]['debyeTerms'],rowLabels=rowLabels,colLabels=colLabels,types=Types)
    11781178            debyeGrid = G2G.GSGrid(parent=G2frame.dataWindow)
    1179             debyeGrid.SetScrollRate(0,0)
     1179#            debyeGrid.SetScrollRate(0,0)
    11801180            debyeGrid.SetTable(debyeTable, True)
    11811181            debyeGrid.Bind(wx.EVT_KEY_DOWN, KeyEditPeakGrid)
     
    12391239            peaksTable = G2G.Table(data[1]['peaksList'],rowLabels=rowLabels,colLabels=colLabels,types=Types)
    12401240            peaksGrid = G2G.GSGrid(parent=G2frame.dataWindow)
    1241             peaksGrid.SetScrollRate(0,0)
     1241#            peaksGrid.SetScrollRate(0,0)
    12421242            peaksGrid.SetTable(peaksTable, True)
    12431243            peaksGrid.Bind(wx.EVT_KEY_DOWN, KeyEditPeakGrid)
     
    26452645    G2frame.indxPeaks.Bind(wg.EVT_GRID_CELL_LEFT_CLICK, RefreshIndexPeaksGrid)
    26462646    G2frame.indxPeaks.Bind(wx.EVT_KEY_DOWN, KeyEditPickGrid)                 
    2647     G2frame.indxPeaks.SetScrollRate(0,0)
     2647#    G2frame.indxPeaks.SetScrollRate(0,0)
    26482648    G2frame.indxPeaks.AutoSizeColumns(False)
    26492649    if len(XY):
     
    33293329        gridDisplay.Bind(wg.EVT_GRID_CELL_LEFT_CLICK,RefreshUnitCellsGrid)
    33303330        gridDisplay.Bind(wg.EVT_GRID_LABEL_LEFT_DCLICK,OnSortCells)
    3331         gridDisplay.SetScrollRate(0,0)
     3331#        gridDisplay.SetScrollRate(0,0)
    33323332        gridDisplay.SetRowLabelSize(0)
    33333333        gridDisplay.AutoSizeColumns(False)
Note: See TracChangeset for help on using the changeset viewer.