Revert "Use wx.SYS_VTHUMB_Y system settings constant for PFListPane scrolling increment. Should fix the scrolling 'effort' on wxgtk"
This reverts commit 76bd05b295.
This commit is contained in:
@@ -53,7 +53,7 @@ class PFListPane(wx.ScrolledWindow):
|
||||
def MScrollUp(self, event):
|
||||
|
||||
posy = self.GetScrollPos(wx.VERTICAL)
|
||||
posy -= wx.SystemSettings_GetMetric(wx.SYS_VTHUMB_Y)
|
||||
posy -= 12
|
||||
self.Scroll(0, posy)
|
||||
|
||||
event.Skip()
|
||||
@@ -61,7 +61,7 @@ class PFListPane(wx.ScrolledWindow):
|
||||
def MScrollDown(self, event):
|
||||
|
||||
posy = self.GetScrollPos(wx.VERTICAL)
|
||||
posy += wx.SystemSettings_GetMetric(wx.SYS_VTHUMB_Y)
|
||||
posy += 12
|
||||
self.Scroll(0, posy)
|
||||
|
||||
event.Skip()
|
||||
@@ -145,7 +145,7 @@ class PFListPane(wx.ScrolledWindow):
|
||||
#selected.SetFocus()
|
||||
elif doFocus:
|
||||
self.SetFocus()
|
||||
|
||||
|
||||
clientW,clientH = self.GetSize()
|
||||
for i in xrange( len(self._wList) ):
|
||||
iwidth, iheight = self._wList[i].GetSize()
|
||||
|
||||
Reference in New Issue
Block a user