Fix attempt for wxgtk overzealousness

This commit is contained in:
HomeWorld
2010-10-27 16:20:33 +03:00
parent ba1279a0c6
commit e5fc402565

View File

@@ -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<iposy+iheight:
self.highlighted = 1
self.Refresh()
event.Skip()
def leaveW(self,event):