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

Function make_toolbar

DemoPrograms/Demo_PIL_Use.py:81–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 return random.choice(sg.EMOJI_BASE64_LIST)
80
81def make_toolbar():
82 layout = [[sg.T('❎', enable_events=True, key='Exit')]]
83 for i in range(6):
84 layout += [[sg.B(image_data = convert_to_bytes(random_image(), (30,30))),
85 sg.B(image_data = convert_to_bytes(random_image(), (30,30)))]]
86 return sg.Window('', layout, element_padding=(0,0), margins=(0,0), finalize=True, no_titlebar=True, grab_anywhere=True)
87
88def main():
89

Callers 1

mainFunction · 0.70

Calls 2

random_imageFunction · 0.85
convert_to_bytesFunction · 0.70

Tested by

no test coverage detected