MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / ping_thread

Function ping_thread

DemoPrograms/Demo_Matplotlib_Ping_Graph_Large.py:72–77  ·  view source on GitHub ↗
(window: sg.Window)

Source from the content-addressed store, hash-verified

70
71
72def ping_thread(window: sg.Window):
73 while True:
74 # time.sleep(.1)
75 # ping_time = random.randint(0, 100)
76 ping_time = ping3.ping('google.com')
77 window.write_event_value('-THREAD-', ping_time)
78
79
80def set_chart_labels():

Callers 1

mainFunction · 0.70

Calls 1

write_event_valueMethod · 0.80

Tested by

no test coverage detected