[vtk-developers] Overriding MouseButtonPressEvent in vtkChartXY
Brad Hollister
behollis at sci.utah.edu
Wed May 4 17:48:56 EDT 2016
Hi,
I'd like to override the mouse handler for vtkChartXY in Python.
However, when I do this, the overriden function is not called. I have
the following:
from vtk import vtkChartXY, vtkContextMouseEvent
class dbsTransFuncChart(vtkChartXY):
def __init__(self, parent = None):
vtkChartXY.__init__(self)
self.par = parent
def MouseButtonPressEvent(self, *args, **kwargs):
self.par.updateRenderQVTKWin()
return vtkChartXY.MouseButtonPressEvent(self, *args,
**kwargs)
Is there a way to do this properly?
Regards,
Brad
More information about the vtk-developers
mailing list