[chimerax-users] ToolInstance context menu displaying help

Anthony James Schaefer tony.schaefer at uga.edu
Thu Mar 26 23:01:19 PDT 2020


Hello,

can tools' "Help" option in the context menu be changed to use `ToolInstance.display_help` instead of running the `help` command? I'd like to keep most of my documentation on GitHub. The `help` command cannot open URLs, so I thought I'd overwrite my tools' `display_help` methods to use `open` instead. However, I discovered this method isn't used anywhere.

I've tried changing `_show_context_menu` in chimerax.ui.gui (around line 2087) to `help_action.triggered.connect(ti.display_help)`. It seems to behave the same for all built-in tools.

I understand there might be reasons to not do this (e.g. users might not be able to connect to the internet). I'd like to keep stuff on GitHub because I can make a page on a GitHub wiki page faster than an HTML doc. Regardless of how tools' help pages get shown, I'd like to have examples of what my bundle can do on the GitHub wiki. To that end, my GitHub wiki could serve a dual purpose: a showcase and documentation.

Best,

Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20200327/e9e87f52/attachment-0001.html>


More information about the ChimeraX-users mailing list