Multithreading in tkinter using window.after
you can probably launch fire_astrum
in a thread from fire_all
.
maybe like this:
import threading...if a == '1': threading.Thread(target=lambda dev='Dev1': fire_astrum(dev)).start()...
It is unclear how long fire_astrum
takes to complete; it also sleeps for 300ms; there is no telling the outcome when fired every 100ms, you'll have to try.