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.

24 lines
568 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. desc = "Example application to show Gooey's various widgets"
  14. parser = GooeyParser(prog="example_progress_bar_1")
  15. _ = parser.parse_args(sys.argv[1:])
  16. import time
  17. time.sleep(1)
  18. print('Success')
  19. if __name__ == '__main__':
  20. main()