diff --git a/gui/PFListPane.py b/gui/PFListPane.py index 9c30327e2..fd4955f08 100644 --- a/gui/PFListPane.py +++ b/gui/PFListPane.py @@ -34,9 +34,9 @@ class PFListPane(wx.ScrolledWindow): 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_CHILD_FOCUS, self.OnChildFocus) self.Bind(wx.EVT_LEFT_DOWN, self.ForceFocus) - self.Bind(wx.EVT_MOUSE_CAPTURE_CHANGED, self.ForceFocus) +# self.Bind(wx.EVT_MOUSE_CAPTURE_CHANGED, self.ForceFocus) def ForceFocus(self,event): if self.FindFocus() and self.FindFocus().Parent != self: @@ -121,7 +121,7 @@ class PFListPane(wx.ScrolledWindow): def IsWidgetSelectedByContext(self, widget): return False - def RefreshList(self, doRefresh = False, doFocus = True): + def RefreshList(self, doRefresh = False, doFocus = False): ypos = 0 maxy = 0 scrollTo = 0 diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 3ae39ae3e..53647f2f8 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1271,6 +1271,10 @@ class FitItem(SFItem.SFBrowserItem): self.selTimer = wx.Timer(self,self.selTimerID) self.selTimer.Start(100) + def GetType(self): + return 3 + + def OnTimer(self, event): if self.selTimerID == event.GetId():