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

Adding Gooey as an easier way to provide arguments #33

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

eoprede
Copy link
Contributor

@eoprede eoprede commented Apr 26, 2020

This is a first crack at adding GUI to the script. It's definitely not a full blown GUI , but hopefully good enough and an easy way to do it. I won't be offended if this is not the direction you want to take the project :)
It gets very messy and complicated if I run gui and non-gui versions of the code in the same file (have to make a fake decorator, have to add all those extra options to CLI args, etc), so I opted to put gui code to a separate file. This required small modifications to run.py, but it mostly involved moving things into different functions.
Since the goal was to be able to adjust config in the GUI, I have added extra options to it. Their default values are set to what's already in the config and upon execution of the script those values are saved to the conf.toml file, so they persist between code execution and the rest of the code doesn't need to be aware of the GUI at all.
The -noprofile command is to tell powershell to not load the user profile and it doesn't affect the functionality, but without it on my machine Gooey version of the script generates an error when playing sound.
Currently there's a bug between Gooey and the wxpython 4.1.0, so I have to specify an earlier version in the requirements manually.
I have done some limited testing and things appear to work just fine, but I didn't try everything.

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

Successfully merging this pull request may close these issues.

1 participant