Ignore:
Timestamp:
Sep 28, 2017 9:16:15 AM (4 years ago)
Author:
vondreele
Message:

change SetScrollRate?(1,1) to SetScrollRate?(10,10) - improves scrolling speed on all windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3095 r3101  
    46114611        #if Sizer.GetItemCount() == 1: # not wx 2.8
    46124612        if len(Sizer.GetChildren()) == 1: # handle cases with a single grid in DataWindow differently
    4613             # note that Grid's scroll bars must be turned on with .SetScrollRate(1,1)
     4613            # note that Grid's scroll bars must be turned on with .SetScrollRate(10,10)
    46144614            # just after the call to .GSGrid()
    46154615            if isinstance(Sizer.GetItem(0).GetWindow(), G2G.GSGrid):
     
    46214621                return
    46224622        self.SetAutoLayout(True)
    4623         self.SetScrollRate(1,1)
     4623        self.SetScrollRate(10,10)
    46244624        self.SendSizeEvent()
    46254625
     
    71867186    G2frame.dataWindow.currentGrids = []
    71877187    G2frame.dataDisplay = G2G.GSGrid(parent=G2frame.dataWindow)
    7188     G2frame.dataDisplay.SetScrollRate(1,1)
     7188    G2frame.dataDisplay.SetScrollRate(10,10)
    71897189    G2frame.dataWindow.GetSizer().Add(G2frame.dataDisplay,1,wx.ALL|wx.EXPAND)
    71907190    G2frame.SeqTable = G2G.Table([list(cl) for cl in zip(*G2frame.colList)],     # convert from columns to rows
Note: See TracChangeset for help on using the changeset viewer.