diff --git a/DemoPrograms/Demo_Multithreaded_Queued.py b/DemoPrograms/Demo_Multithreaded_Queued.py index 09ebf8ac..735a8ae0 100644 --- a/DemoPrograms/Demo_Multithreaded_Queued.py +++ b/DemoPrograms/Demo_Multithreaded_Queued.py @@ -63,9 +63,7 @@ if __name__ == '__main__': #-- Create a Queue to communicate with GUI -- gui_queue = Queue() # queue used to communicate between the gui and the worker #-- Start worker threads, one runs twice as often as the other - thread = Thread(target=worker_thread, args=('Thread 1', 1000, gui_queue,), daemon=True) - thread.start() - thread = Thread(target=worker_thread, args=('Thread 2', 500, gui_queue,), daemon=True) - thread.start() + Thread(target=worker_thread, args=('Thread 1', 1000, gui_queue,), daemon=True).start() + Thread(target=worker_thread, args=('Thread 2', 500, gui_queue,), daemon=True).start() #-- Start the GUI passing in the Queue -- the_gui(gui_queue)