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

Function draw_bars

DemoPrograms/Demo_Sort_Visualizer.py:30–35  ·  view source on GitHub ↗
(graph, items)

Source from the content-addressed store, hash-verified

28
29
30def draw_bars(graph, items):
31 # type: (sg.Graph, List)->None
32 for i, item in enumerate(items):
33 graph.draw_rectangle(top_left=(i * BAR_SPACING + EDGE_OFFSET, item),
34 bottom_right=(i * BAR_SPACING + EDGE_OFFSET + BAR_WIDTH, 0),
35 fill_color='#76506d')
36
37
38def main():

Callers 1

mainFunction · 0.85

Calls 1

draw_rectangleMethod · 0.80

Tested by

no test coverage detected