Gooey

Latest version: v1.0.8.1

Safety actively analyzes 630406 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.0.5

1.0.4

Translation notice! Yes/No options in confirmation modals are now backed by the language files. Previously, they were fixed to english regardless of the selected language. If the new language options aren't configured for your language, you will now see a translation request in the button label!


What's new


Widgets: TimeChooser

<p align="center">
<img src="https://github.com/chriskiehl/GooeyImages/raw/images/docs/releases/1.0.4/time-chooser-demo.JPG">
</p>

Usage:

python
parser = GooeyParser()
parser.add_argument('--time', widget='TimeChooser')


NathanRichard added this one after an excellent deep dive into the complexities of dealing with time inside of WX. See the README for notes on usage.


Widgets: ColourChooser

<p align="center">
<img src="https://github.com/chriskiehl/GooeyImages/raw/images/docs/releases/1.0.4/color-chooser-demo.jpg">
</p>

Usage:

python
parser = GooeyParser()
parser.add_argument('--color', widget='ColourChooser')


conradhilley brought this one to life. You can now select colors from an awesome little chooser widget.


CLI based defaults

jschultz added the ability to use arguments passed on the command line as defaults in Gooey. Enable this functionality by passing `use_cmd_args` to the Gooey decorator.

python
Gooey(use_cmd_args=True)
def main():
parser = ArgumentParser()
parser.add_argument('--foo')


Now any CLI args you pass when invoking your program will show up as defaults in Gooey.


python my_program.py --foo "hello!"


Additional features

- Added option to start Gooey in full screen mode


Language Additions / Improvements

* foben - documentation fixes
* gediz - turkish translations
* dsardelic - bosnian & Croatian translations
* partrita - Korean translations


Bug Fixes

- Main README image had a typo "Command Lines Applications"
- Truthy values
- Fixed bug where nargs in textfields weren't being mapped correctly
- Fixed bug where argparse's SUPPRESS flag was showing in the UI
- Fixed missing i18n capabilities in modals
- Fixed bug where program_description wasn't being honored
- Fixed bug where gooey_options weren't being honored in the Header
- Fixed bug where RadioGroup wasn't enabling it's child widget when `initial_selection` was set
- Fixed bug where checkboxes weren't honoring visibility options
- Fixed bug where gooey_options weren't being passed to footer





1.0.3.1-hotfix
This is a temporary hotfix downgrading the wxpython used by Gooey to 4.0.7.

[WxPython 4.10](https://wxpython.org/news/2020-04-24-wxpython-410-release/index.html) introduced unexpected breaking changes. These changes caused Gooey to fail when starting up.

If you are seeing errors such as this when running Gooey


wx._core.wxAssertionError: C++ assertion "!(flags & wxALIGN_CENTRE_HORIZONTAL)" failed at ..\..\src\common\sizer.cpp(2106) in wxBoxSizer::DoInsert(): Horizontal alignment flags are ignored in horizontal sizers


This release will resolve them.

Longer term solution to follow pending additional research.

1.0.3

![title card](https://github.com/chriskiehl/GooeyImages/blob/images/docs/releases/1.0.3/release-title-card.png)

After cooking for far too long, **Gooey 1.0.3 is released!**



Grab the latest version:

* [github](https://github.com/chriskiehl/Gooey)
* [PyPi](https://pypi.org/project/Gooey/1.0.3/)


Runnable demos for all the new features can be found in the [Examples repo](https://github.com/chriskiehl/GooeyExamples).

Overview:


A lot of focus was put on settling Gooey down into a more stable mature project. In addition to all of the new features, a lot of time was spent writing documentation, stamping down cross platform issues / quirks, and making numerous tweaks and additions to enable a smoother experience when packaging Gooey for distribution.


What's new


Fancy Layout controls!


![advanced layout](https://github.com/chriskiehl/GooeyImages/raw/images/docs/releases/1.0.3/advanced-layout.png)

The main goal of this release was enabling more complex real-world layouts and more customization of Gooey's UI. As of 1.1.0, you now have have control over every color, font, and display status within the application. You can now brand Gooey to your organization's colors, logically group related items under a central heading, and optionally show/hide all the individual components that make up an input widget.


Menu Bars

Gooey now includes a simple declarative system for creating top level menu bars and items.

![menu bar](https://github.com/chriskiehl/GooeyImages/raw/images/docs/releases/1.0.3/menu.png)



The menu option currently supports three flavors:



**AboutDialog**


This is an AboutDialog as rendered natively by your OS. It's a good place to show standard info like version info, descriptions, licenses, etc.. in a standard way across platforms.



**MessageDialogs**


Next up are general message dialogs. You can display any informational text inside of these.



**Link**


Finally, you can create fixed menu items that simply link to external resources, for instance, your site, documentation, pdfs, etc..


Rich Text Controls

Thanks to NathanRichard, Gooey can now optionally honor terminal control sequences and display Rich Text in the output panel.

![rich text](https://github.com/chriskiehl/GooeyImages/raw/images/docs/releases/1.0.3/rich-text.png)


New Gooey Program Icon

<img src="https://github.com/chriskiehl/GooeyImages/raw/images/logo/gooey.png" width="200" height="auto">

New icon provided by professional cool guy and crazy talented UX designer [Justin Rhee](https://www.linkedin.com/in/justinrhee/).




Additional features

* OSX now shows program Icon in Dock
* `show_error_modal` option to toggle whether or not failures additionally raise alert modals.
* `BlockCheckbox` widget.
* Hyperlinks written to the console appear as such and will launch a browser on click
* `clear_before_run` option lets you control whether or not subsequent program runs start from a fresh terminal or preserve the previous output.
* Conditionally show/hide restart button
* `requires_shell` option - controls how `Popen` spawns your program. By default (and historically), this value is False.
* Optionally silence textual progress updates when using the Progress widget (via conradhilley)
* Multi-Directory Choosers - these were accidentally dropped from the project. HenrykHaniewicz added them back!
* Additional explicit wx imports to make packaging on OSX easier
* Textfields can now be made Readonly for informational purposes
* better custom target support via `suppress_gooey_flag` which prevents the `--ignore-gooey` flag from being injected




Breaking Changes

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.