nargs='+', default="None", help= 'Simulation configuration file(s) -- later files overlay on previous files' ) args = parser.parse_args() # Create the timer test from timers import TimerTest tt = TimerTest(100000) timer_thread = threading.Thread(target=tt.run, args=()) timer_thread.daemon = True # Create the sim runner sim = Sim(Sim.load_config_files(args.configfile)) sim.set_working_dir('data/testgui') # Run the threads # simrunner.run_threaded() # This will be handled by the 'Start' button of the simulator timer_thread.start() #gui = TkAnimGui(sim) # Run the gui gui = GuiLayout(sim) gui.run() """ gui_thread = threading.Thread(target=root.mainloop, args=()) gui_thread.start() gui_thread.join() """