I solved this by grabbing the event on the main window:
self.gp.Bind(wx.EVT_MOUSEWHEEL, self.OnWheelGrabber)
def OnWheelGrabber(self, evt):
pass
----- Repassado por Luis Gustavo Neves da Silva/RJ/Petrobras em 09.03.2007
16:20 -----
Luis Gustavo Neves
da
Silva/RJ/Petrobras Para
TI/TI-PEC/TI-CENPES wxPython-users@lists.wxwidgets.o
rg
09.03.2007 15:53 cc
Corporativo
Assunto
FigureCanvas disappears if
mousewheel is used
(Embedded
image moved (Embedded image moved to file: pic10195.jpg)
to file:
pic13261.jpg)
Friends,
I created a graph with matplotlib.figure, but the FigureCanvas
disappears when the mousewheel is used. It is a matplotlib bug or I am
doing something wrong?
Cheers,
Luis
"O emitente desta mensagem é responsável por seu conteúdo e endereçamento.
Cabe ao destinatário cuidar quanto ao tratamento adequado. Sem a devida
autorização, a divulgação, a reprodução, a distribuição ou qualquer outra
ação em desconformidade com as normas internas do Sistema Petrobras são
proibidas e passíveis de sanção disciplinar, cível e criminal."
"The sender of this message is responsible for its content and addressing.
The receiver shall take proper care of it. Without due authorization, the
publication, reproduction, distribution or the performance of any other
action not conforming to Petrobras System internal policies and procedures
is forbidden and liable to disciplinary, civil or criminal sanctions."
" El emisor de este mensaje es responsable por su contenido y
direccionamiento. Cabe al destinatario darle el tratamiento adecuado. Sin
la debida autorización, su divulgación, reproducción, distribución o
cualquier otra acción no conforme a las normas internas del Sistema
Petrobras están prohibidas y serán pasibles de sanción disciplinaria, civil
y penal."