Add --ignore-gooey option to README
See original GitHub issueHi!
Not a bug so much as an oversight in the readme perhaps?
I spent quite a long time agonising about how to make a CLI interface and a GUI option play nicely together. I knew there had to be an elegant solution somewhere (such as switching between framework/non-framework python.
I noticed in the STDOUT while the program ran however, that it spits out a verbose version of the full call to python which highlighted the --ignore-gooey
option which suffices for this perfectly - but there is no mention of this in the README, or any docs I could find.
Could I suggest/request this be highlighted somewhere (and perhaps a more full guide with it if there are other things to consider when using --ignore-gooey
that I’m not aware of).
Otherwise, love the package!
Joe
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (3 by maintainers)
Top GitHub Comments
This is exactly what I needed (only start Gooey if the script is started without argument, otherwise operate as CLI). It is very simple and straightforward, however there is a caveat that took me some time to understand:
⚠️ you need to place the code before the
@Gooey()
decorator.So for example, you can do like this:
Initially I tried putting it in the
if __name__ == '__main__'
section, but that won’t work.sys.stdout.isatty()
.response=prompt_for_one_of('Would you like to save?', 'Yes', 'No')