Simon Rechermann
Simon Rechermann

Reputation: 501

the wx.EVT_MOTION event doesn't work for wxPython 4.0.6

the event wx.EVT_MOTION doesn't work for wxPython 4.0.6

self.Bind(wx.EVT_MOTION, self.OnMouseMotion, self.GetGridWindow())

with wxPython 3.0.2.0 the same binding worked. I also tried to bind other events e.g. EVT_MOUSEWHEEL for wxPython 4.0.6 and it worked. Does anyone know what changed in the version 4.0.6 and why the wx.EVT_MOTION isn't working anymore?

Upvotes: 0

Views: 229

Answers (1)

Infinity77
Infinity77

Reputation: 1449

Does it change anything if you do:

self.GetGridWindow().Bind(wx.EVT_MOTION, self.OnMouseMotion)

?

Upvotes: 2

Related Questions