vedo
vedo copied to clipboard
Vedo closing PySide2 window on close
As title says, I have a PySide2 GUI that triggers code to display a point cloud using the Vedo show() function. I call show() on a list of Vedo point objects.
With or without the .close() after .show(), when the Vedo point cloud display is closed, all other active windows close with it. No error message is displayed
sorry for the late reply, you may need to provide a minimal script to allow reproducing the issue, have you tried calling
plt.interactor.Start()
I think I'm seeing the same issue or a related one: I tried running several of the bundled examples and the plotted window is instantly closed before i have a chance to interact with it.
interactive=True
makes no difference.
On my system this happens when I run any of the following commands:
vedo -r plot_errbars
vedo -r histo_polar
vedo -r histo_spheric
I assume it just happens for any vedo plot.
I have python 3.10.4, vtk==9.2.0rc1, numpy==1.21.6.
(edit: and vedo==2021.0.6)
(edit 2: i see that in the github version, vtk is pinned to <9.1.0, which has no wheels available for python 3.10. I'll try to check if this is the issue.)
(edit 3: the issue is fixed in version vedo-2022.2.3.dev5
but I had to unpin the vtk
dependency bound. Works fine for me with vtk==9.2.0rc1
.)
Hi @vene thanks for reporting this, unfortunately vtk versions 9.1 seem to have problems with transparent object rendering, not sure if this has been fixed in v9.2, apart from this all the rest should work ok.