autolab-project / autolab

Python package for laboratory instruments control and scientific experiments automation

Home Page:https://autolab.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[issue] Instantianting an instrument block the main GUI

pyMatJ opened this issue · comments

When instantiating an instrument, the main GUI is not responsive.
This can be annoying for some instruments that are long to instantiate (e.g. a laser that needs arming etc.).

Would it be possible to run the instantiation in a dedicated thread (maybe showing on the main GUI that something is happening using a color code/flashing/whatever) and update the GUI (with the QTreeWidgetItems) only after the init has finished ?

Hi! I did it in commit eb654f5 if you are still looking for a solution.