Fix attempt for wxgtk overzealousness
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user