We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
import os os.environ['ETS_TOOLKIT'] = 'qt6' import mayavi.mlab mayavi.mlab.test_plot3d() mayavi.mlab.show() quit()
leads to a crash, with the following error msg:
Traceback (most recent call last): File "/home/voodoocode/local_python/lib/python3.12/site-packages/tvtk/pyface/ui/qt4/QVTKRenderWindowInteractor.py", line 543, in mouseMoveEvent self.__saveX = int(ev.x()*pxr) ^^^^ AttributeError: 'QMouseEvent' object has no attribute 'x'
Putting a breakpoint into line 59 of QVTKRenderWindowInteractor.py reveals that qt_api is (properly) set to pyqt6
This issue occurred after upgrading Python from 3.11 to 3.12.
This can be fixed as follows, changing lines 543, 544, 547, 547, 514, 514, 529, and 529 from
ev.x()
to
ev.position().x()
and
ev.y()
ev.position().y()
However, this will likely break earlier Qt versions (i.e. < 6) and needs corresponding handling.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following code:
leads to a crash, with the following error msg:
Putting a breakpoint into line 59 of QVTKRenderWindowInteractor.py reveals that qt_api is (properly) set to pyqt6
This issue occurred after upgrading Python from 3.11 to 3.12.
This can be fixed as follows, changing lines 543, 544, 547, 547, 514, 514, 529, and 529 from
to
and
to
However, this will likely break earlier Qt versions (i.e. < 6) and needs corresponding handling.
The text was updated successfully, but these errors were encountered: