MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / GraphColumn

Function GraphColumn

DemoPrograms/Demo_Desktop_Widget_CPU_Dashboard.py:62–64  ·  view source on GitHub ↗
(name, key)

Source from the content-addressed store, hash-verified

60 return(sg.Text(text, font=('Helvetica 8'), **kwargs))
61
62 def GraphColumn(name, key):
63 return sg.Column([[Txt(name, size=(10,1), key=('-TXT-', key))],
64 [sg.Graph((GRAPH_WIDTH, GRAPH_HEIGHT), (0, 0), (GRAPH_WIDTH, 100), background_color='black', key=('-GRAPH-', key))]], pad=(2, 2))
65
66 num_cores = len(psutil.cpu_percent(percpu=True)) # get the number of cores in the CPU
67

Callers 1

mainFunction · 0.70

Calls 1

TxtFunction · 0.70

Tested by

no test coverage detected