# Disable X,Y,and Z in vtkInteractorStyleImage

**URL:** https://discourse.vtk.org/t/disable-x-y-and-z-in-vtkinteractorstyleimage/2918
**Category:** Support
**Created:** [March 30, 2020, 8:01pm UTC](https://discourse.vtk.org/t/disable-x-y-and-z-in-vtkinteractorstyleimage/2918 "2020-03-30T20:01:14Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![yangyang117](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/da6949/32.png) [@yangyang117](https://discourse.vtk.org/u/yangyang117)
#### Post date: [December 19, 2023, 2:03am UTC](https://discourse.vtk.org/t/disable-x-y-and-z-in-vtkinteractorstyleimage/2918/2 "2023-12-19T02:03:56Z")

</div>

Hi, this link can solve the problem.

> [@Disable interactions of interactor in python](https://discourse.vtk.org/t/disable-interactions-of-interactor-in-python/6939):
>
> I use vtk in an application (qt) where I would like to define my own events for right-mouse button (context menu) as well as some of the key presses. Problem is that they are already used by the interactor. ([https://vtk.org/doc/nightly/html/classvtkInteractorStyle.html#details](https://vtk.org/doc/nightly/html/classvtkInteractorStyle.html#details)) Is there a way to keep the interactor from handling these events? I’m using python so subclassing the interactor (like sugested here: [Selectively disable and enable default mouse interactions in vtk](https://discourse.vtk.org/t/selectively-disable-and-enable-default-mouse-interactions-in-vtk/2338)) is not an option. …

---

_[View the full topic](https://discourse.vtk.org/t/disable-x-y-and-z-in-vtkinteractorstyleimage/2918)._
