vedo icon indicating copy to clipboard operation
vedo copied to clipboard

Using vedo with PySimpleGUI

Open elizabethcd opened this issue 1 year ago • 2 comments

I have looked through the vedo docs and have not found a way to do this, so I wanted to ask here in case I am missing something. It seems like integration with any kind of GUI for Plotters in vedo is only supported through the qt_widget argument option, as demonstrated in examples/other/qt_window2.py. However, for my project I am using PySimpleGUI, which generally relies on tkinter in the backend. I found a relevant issue on the PySimpleGUI Github, where they discuss how a Canvas element would be a good potential solution, and that vedo would need to be the one to provide some kind of accessible output product for embedding. Is there any way to extract an element from vedo or pass in arguments for which figure/axes to plot onto that could be integrated into other GUI options?

It also seems like other GUI options like streamlit (mentioned in #588 ) are of interest, including potentially website-focused GUI options.

elizabethcd avatar Sep 19 '23 21:09 elizabethcd

Hi @elizabethcd thanks for drawing my attention to pysimplegui, unfortunately at the moment the upstream vtk only supports Qt. About streamlit this is completely different from the above as it's web based, if there is enough interest we could work out a better integration in vedo (but there will always be some limitations..).

marcomusy avatar Sep 20 '23 17:09 marcomusy

Just want to add my support for this feature! We use both streamlit and vedo for neuroscience visualisation software, and would absolutely love to see an integration where we can embed a vedo plot inside a streamlit app!

rory-bedford avatar Oct 17 '23 12:10 rory-bedford