mailbagit
mailbagit copied to clipboard
Compress GUI element allows for arbitrary values
Describe the bug Compression field in mailbagit-gui allows for invalid values beyond the available values in the dropdown.
To Reproduce
- Run
pip install 'mailbagit[pst]'
- Run
mailbagit-gui
- Click the text "Select Option" under the "compress" heading.
- Enter arbitrary text.
Expected behavior The expected behavior is that GUI component is not editable text but when clicking "Select Option", the dropdown contents is displayed, allowing for a selection (i.e., tar, zip, tar.gz). Clicking the arrow to the right of the text exhibits this expected behavior.
Screenshots
Environment (please complete the following information):
- GUI or command line?: (both)
- OS: [e.g. iOS] macOS 12.3.1, M1/arm64 (perhaps significant)
- Python version: Python 3.9 (wxPython seems to have limited support for 3.10+)
Thanks for this bug report @machawk1! Looks like this is an upstream Gooey bug with the widget its using. The same applies for the input field as well. Mailbagit does raise an error for invalid entries at least, but since it does it after a user completes the form it is a usability problem.
Thanks for pointing out the 3.10 support too, which I need to look into more and clarify.