-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Hi :)
My main use case for magicgui is to replace command line applications with friendlier, GUI-based tools. This is very helpful for my non-coder colleagues, and magicgui has been invaluable on that front. One thing that I "miss" from CLI tools is documentation for the available parameters and more general "help documentation" which explains the use case that this current app is here to solve. In CLI tools these bits of information can usually be invoked with a --help flag which is obviously missing here.
I was wondering whether you think it would be possible to add text box for each parameter of the GUI which appears following a hover "event". This text box may pull its information from the docstring of the main annotated function (moar magik!). If you think it's doable I might try to dip my toes into this magical swamp.
In addition, a more traditional "Help" context menu or button can be optionally activated by adding a "help_button: True" entry to the main magicgui dictionary. This button can again get its information from the main body of the function's docstring.
How does it sound to you? I believe some docstring magic is already happening in order to decipher each type's designated widget.