thread_bus_2.start() thread_bus_3 = Thread(target=running_bus_3, args=(bus_3, False)) thread_bus_3.start() thread_screen_up = Thread(target=screen_update, args=(bus_1, bus_2, bus_3, station_1, station_2)) thread_screen_up.start() #################################### bus_1.connect() bus_2.connect() bus_3.connect() #Les bus enovient leurs donnees thread_send_data = Thread(target=send_data, args=(bus_1, bus_2, bus_3)) thread_send_data.start() station_1.connect() station_1.getData(myEventCallback) ##################################### #time.sleep(60) #thread_send_data._stop() #station_1._stop() #bus_1.disconnect() #bus_2.disconnect() #bus_3.disconnect() #thread_bus_1._stop() #thread_bus_2._stop() #thread_bus_3._stop() #pygame.quit() # TODO: Test bus class - Connection , publishing ,