You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
550 B

  1. import sys
  2. from gooey import Gooey
  3. from gooey import GooeyParser
  4. from argparse import ArgumentParser
  5. @Gooey(
  6. progress_regex=r"^progress: (-?\d+)%$",
  7. disable_progress_bar_animation=True,
  8. dump_build_config=True,
  9. show_success_modal=False,
  10. auto_start=True
  11. )
  12. def main():
  13. parser = get_parser()
  14. _ = parser.parse_args(sys.argv[1:])
  15. import time
  16. time.sleep(2)
  17. print('Success')
  18. def get_parser():
  19. return GooeyParser(prog="example_progress_bar_1")
  20. if __name__ == '__main__':
  21. main()