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

Function main

DemoPrograms/Demo_Multithreaded_Animated_Shell_Command.py:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def main():
30 thread = threading.Thread(target=process_thread, daemon=True)
31 thread.start()
32
33 while True:
34 sg.popup_animated(sg.DEFAULT_BASE64_LOADING_GIF, 'Loading list of packages', time_between_frames=100)
35 thread.join(timeout=.1)
36 if not thread.is_alive():
37 break
38 sg.popup_animated(None)
39
40 output = proc.__str__().replace('\\r\\n', '\n')
41 sg.popup_scrolled(output, font='Courier 10')
42
43
44if __name__ == '__main__':

Calls 2

startMethod · 0.80
__str__Method · 0.80

Tested by

no test coverage detected