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
Hello. I'm trying to use pyvistaqt on Windows 10 but I have some issues. If I try to execute this code:
import sys import pyvista as pv from PyQt5.QtWidgets import (QApplication, QHBoxLayout, QMainWindow, QWidget) from pyvistaqt import QtInteractor class MainWindow(QMainWindow): def __init__(self): super().__init__() self.actor = None central_widget = QWidget() window_layout = QHBoxLayout() self.setCentralWidget(central_widget) central_widget.setLayout(window_layout) self.plotter = QtInteractor(self) sphere_f = pv.Sphere() self.actor = self.plotter.add_mesh(sphere_f) # Set up page window_layout.addWidget(self.plotter) return if __name__ == "__main__": print('Using QtInteractor') app = QApplication(sys.argv) window = MainWindow() window.show() sys.exit(app.exec_())
the program freezes in line self.plotter = QtInteractor(self).
self.plotter = QtInteractor(self)
During test I found out that if I use pv.Plotter before the QtInteractot I don't have any problems and the program works correctly.
if __name__ == "__main__": print('workaround') p1 = pv.Plotter() p1.show() print('Using QtInteractor') app = QApplication(sys.argv) window = MainWindow() window.show() sys.exit(app.exec_())
The original code in Ubuntu 20.04 has no issues.
This is the scooby report of my Windows machine:
Date: Wed May 24 09:19:31 2023 ora legale Europa occidentale OS : Windows CPU(s) : 12 Machine : AMD64 Architecture : 64bit Environment : Python Python 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:51:25) [MSC v.1934 64 bit (AMD64)] pyvista : 0.39.1 vtk : 9.2.5 numpy : 1.24.3 matplotlib : 3.7.1 scooby : 0.7.2
Same problem with pyvista : 0.38.5 (version I had in my Ubuntu machine)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
I'm trying to use pyvistaqt on Windows 10 but I have some issues.
If I try to execute this code:
the program freezes in line
self.plotter = QtInteractor(self)
.During test I found out that if I use pv.Plotter before the QtInteractot I don't have any problems and the program works correctly.
The original code in Ubuntu 20.04 has no issues.
This is the scooby report of my Windows machine:
Same problem with pyvista : 0.38.5 (version I had in my Ubuntu machine)
The text was updated successfully, but these errors were encountered: