autolab-project / autolab

Python package for laboratory instruments control and scientific experiments automation
https://autolab.readthedocs.io/
GNU General Public License v3.0
28 stars 7 forks source link

[issue] Instantianting an instrument block the main GUI #7

Closed pyMatJ closed 7 months ago

pyMatJ commented 2 years ago

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 ?

Python-simulation commented 11 months ago

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