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

Function SetLED

DemoPrograms/Demo_LED_Indicators.py:24–27  ·  view source on GitHub ↗
(window, key, color)

Source from the content-addressed store, hash-verified

22 pad=(0, 0), key=key)
23
24def SetLED(window, key, color):
25 graph = window[key]
26 graph.erase()
27 graph.draw_circle((0, 0), 12, fill_color=color, line_color=color)
28
29
30layout = [[sg.Text('My LED Status Indicators', size=(20,1))],

Callers 1

Calls 2

eraseMethod · 0.80
draw_circleMethod · 0.80

Tested by

no test coverage detected