Oct-16-2018, 09:14 PM
Hi there.
I'm looking into thread.interrupt_main() as a way to exit a thread and close an app irrespective of other threads running.
But, if I've started my app off with:
threads=[threading.Thread(target=func) for func in [ThreadOne, ThreadTwo$
[th.start() for th in threads]
[th.join() for th in threads]
Where does the keyboard handling code go? I don't have a loop anywhere in the main thread anymore?
Many thanks.
I'm looking into thread.interrupt_main() as a way to exit a thread and close an app irrespective of other threads running.
But, if I've started my app off with:
threads=[threading.Thread(target=func) for func in [ThreadOne, ThreadTwo$
[th.start() for th in threads]
[th.join() for th in threads]
Where does the keyboard handling code go? I don't have a loop anywhere in the main thread anymore?
Many thanks.