From 76bd05b295c15ad59a601e7c8c2b18d9ad103303 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Tue, 7 Jun 2011 20:10:26 +0300 Subject: [PATCH] Use wx.SYS_VTHUMB_Y system settings constant for PFListPane scrolling increment. Should fix the scrolling 'effort' on wxgtk --- gui/PFListPane.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/PFListPane.py b/gui/PFListPane.py index c613ce1e6..1d133f486 100644 --- a/gui/PFListPane.py +++ b/gui/PFListPane.py @@ -53,7 +53,7 @@ class PFListPane(wx.ScrolledWindow): def MScrollUp(self, event): posy = self.GetScrollPos(wx.VERTICAL) - posy -= 12 + posy -= wx.SystemSettings_GetMetric(wx.SYS_VTHUMB_Y) self.Scroll(0, posy) event.Skip() @@ -61,7 +61,7 @@ class PFListPane(wx.ScrolledWindow): def MScrollDown(self, event): posy = self.GetScrollPos(wx.VERTICAL) - posy += 12 + posy += wx.SystemSettings_GetMetric(wx.SYS_VTHUMB_Y) 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()