From e5fc402565cb64f4d5c72aa34a55fcfe3711a2de Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Wed, 27 Oct 2010 16:20:33 +0300 Subject: [PATCH] Fix attempt for wxgtk overzealousness --- gui/shipBrowser.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index a29d63328..2bf14618e 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -556,8 +556,12 @@ class CategoryItem(wx.Window): wx.PostEvent(self.shipBrowser,Stage2Selected(categoryID=categoryID)) def enterW(self,event): - self.highlighted = 1 - self.Refresh() + mposx,mposy = self.Parent.ScreenToClient(wx.GetMousePosition()) + iposx,iposy = self.GetPosition() + iwidth, iheight = self.GetSize() + if mposy >= iposy and mposy