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

GUI #31

Open
mark-thompson opened this issue Apr 24, 2020 · 4 comments
Open

GUI #31

mark-thompson opened this issue Apr 24, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@mark-thompson
Copy link
Owner

Might be nice to have a graphical option for setting config as well as control flow for those who don't spend all day in fancy text editors or on the command line.

@mark-thompson mark-thompson added the enhancement New feature or request label Apr 24, 2020
@eoprede
Copy link
Contributor

eoprede commented Apr 26, 2020

There's a project called Gooey that should be an easy way to pass arguments via GUI. I should have some time this weekend to give it a shot

@mark-thompson
Copy link
Owner Author

@eoprede Neat find - seems like a very convenient tool to convert the argparse things into a decent looking dialog box.
Not sure how well it solves the config options (specifying slot times, for example) and control flow issues though.
I'm thinking Flask may make sense here, or something more 'traditional' like tkinter

@eoprede
Copy link
Contributor

eoprede commented Apr 26, 2020

@mark-thompson My preliminary thoughts - if user runs script with no args, check whether Gooey is installed and if yes - launch Gooey. If no Gooey or args provided - go to CLI version.
Cli version takes config values from file, Gooey version has some additional options. Those options can include listboxes for time selection (here's an example of how they look - chriskiehl/Gooey#228 ), preferred credit card, etc. Then just pass those values to the rest of the script or fall back to what's configured in the file.

@eoprede
Copy link
Contributor

eoprede commented Apr 26, 2020

With that said though, users still would have to make sure python is installed, run pip commands, activate venv (or maybe not bother with it and just install all the libraries) - I almost want to say that if they are willing to put up with all that for the convenience of automatically ordering food, then they might as well edit config files...

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

No branches or pull requests

2 participants