<div dir="ltr"><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">Hello,</div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"><br></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">on my macOSX (didn't check other OS), canvas.mpl_connect('scroll_event',...) misses every other event when I use mouse wheel</div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">(wx.EVT_MOUSEWHEEL works fine and all mouse wheel are reported)</div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"><br></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">exemple code to illustrate the bug (feature?):</div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">in right panel, all mouse wheel events are reported</div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">in left panel (matplotlib panel), every other two event is missing</div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"><br></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">#!/usr/bin/env python<br># -*- coding: iso-8859-1 -*-#</div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">import wx<br>import numpy <br>import matplotlib<br>import sys<br>from matplotlib.figure import Figure<br>from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas<br><br>class TestFrame(wx.Frame):<br>    def __init__(self,parent,title):<br>        wx.Frame.__init__(self,parent,title=title,size=(500,500))<br>        self.sp = wx.SplitterWindow(self)<br>        self.p1 = WxPanel(self.sp)<br>        self.p2 = MplPanel(self.sp)<br>        self.sp.SplitVertically(self.p1,self.p2)<br><br>class WxPanel(wx.Panel):<br>    def __init__(self, parent):<br>        wx.Panel.__init__(self, parent,-1,size=(50,50))<br>        self.Bind(wx.EVT_MOUSEWHEEL,self.OnMouseWheel)<br><br>    def OnMouseWheel(self,event):<br>        print "wx scroll event"<br>        sys.stdout.flush()<br><br>class MplPanel(wx.Panel):<br>    def __init__(self, parent):<br>        wx.Panel.__init__(self, parent,-1,size=(50,50))<br>        self.figure = Figure()<br>        self.axes = self.figure.add_subplot(111)<br>        self.axes.plot(numpy.arange(0.0,10,1.0),[0,1,0,1,0,2,1,2,1,0])<br>        self.canvas = FigureCanvas(self,-1,self.figure)<br>        self.canvas.mpl_connect('scroll_event', self.OnMouseWheel)<br><br>    def OnMouseWheel(self,event):<br>        print "mpl scroll event"<br>        sys.stdout.flush()<br><br>app = wx.App(redirect=False)<br>frame = TestFrame(None, 'Hello World!')<br>frame.Show()<br>app.MainLoop() </div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"><br></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"><br></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">any idea how to solve that behavior?</div></div>