Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks to update the status of the progress bar #60

Closed
ardoramor opened this issue Jan 8, 2015 · 2 comments
Closed

Hooks to update the status of the progress bar #60

ardoramor opened this issue Jan 8, 2015 · 2 comments

Comments

@ardoramor
Copy link

If the script can measure its progress, it would be nice to make calls to update the status of the progress bar instead of it being infinite.

@chriskiehl
Copy link
Owner

This one, though it would be cool, is problematic.

Internally, Gooey no longer talks directly to the client code (your modules), but instead runs them via popen and gets its updates via stdout and stderr. This was done so that Gooey can be agnostic as to the client programs implementation language (e.g. Python, Java, Go, etc..). Because it is a passive observer, there aren't any hooks which you could call to report progress.

Now, I could get around this by parsing stdout for messages giving progress updates -- which, now that I'm typing it doesn't sound too terrible (though pretty clunky), but.. I dunno. I'd have to play around with it a bit.

@lrq3000 lrq3000 mentioned this issue Nov 30, 2015
@chriskiehl
Copy link
Owner

Progress bar implemented.

Docs pending. Checkout the examples here for usage: https://github.com/chriskiehl/GooeyExamples

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants