MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / OnMouseMove

Method OnMouseMove

gui/builtinShipBrowser/raceSelector.py:90–100  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

88 self.SetBackgroundStyle(wx.BG_STYLE_PAINT)
89
90 def OnMouseMove(self, event):
91 mx, my = event.GetPosition()
92
93 location = self.HitTest(mx, my)
94 if location != self.hoveredItem:
95 self.hoveredItem = location
96 self.Refresh()
97 if location is not None:
98 self.SetCursor(wx.Cursor(wx.CURSOR_HAND))
99 else:
100 self.SetCursor(wx.Cursor(wx.CURSOR_ARROW))
101
102 def OnSizeUpdate(self, event):
103 self.CalcButtonsBarPos()

Callers

nothing calls this directly

Calls 3

HitTestMethod · 0.95
GetPositionMethod · 0.45
RefreshMethod · 0.45

Tested by

no test coverage detected