From f2491a6b03c5e520d1dbf8b601de22c204220140 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Wed, 15 Jun 2011 10:54:16 +0300 Subject: [PATCH] Revert "Fix attempt for shipbrowser scrolling" This reverts commit 75f8fc263536a1a92c65502b72354a51d0b4d756. --- gui/PFListPane.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/PFListPane.py b/gui/PFListPane.py index f541ddaa4..c613ce1e6 100644 --- a/gui/PFListPane.py +++ b/gui/PFListPane.py @@ -32,8 +32,8 @@ class PFListPane(wx.ScrolledWindow): self.SetVirtualSize((1, 1)) self.SetScrollRate(0, 1) -# self.Bind(wx.EVT_SCROLLWIN_LINEUP, self.MScrollUp) -# self.Bind(wx.EVT_SCROLLWIN_LINEDOWN, self.MScrollDown) + self.Bind(wx.EVT_SCROLLWIN_LINEUP, self.MScrollUp) + self.Bind(wx.EVT_SCROLLWIN_LINEDOWN, self.MScrollDown) # self.Bind(wx.EVT_CHILD_FOCUS, self.OnChildFocus) # self.Bind(wx.EVT_LEFT_DOWN, self.ForceFocus) self.SetFocus() @@ -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() @@ -154,7 +154,6 @@ class PFListPane(wx.ScrolledWindow): if doRefresh == True: self._wList[i].Refresh() - self.SetScrollbars(0,iheight, 0, maxy/iheight) def RemoveWidget(self, child): child.Destroy()