()
| 27 | |
| 28 | |
| 29 | def 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 | |
| 44 | if __name__ == '__main__': |
no test coverage detected