Standard way to send code to main (kernel/ui) thread from worker thread
Ouverte
- Langage dominant
- Python
- Étoiles
- 734
- Forks
- 412
- Merge moyen
- 1 j 5 h
- PR mergées (30 j)
- 8
Description
lib.backgroundjobs provdes an interface to run code in the background, but I see no simple way of sending code back to the main thread to execute in the main thread, i e to update a matplotlib plot during a long simulation. I guess I can hack it and directly use the thread-safe interface of whatever ui eventloop that happens to be used (Qt5 currently), but is there a standard recommended interface to do this?
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.