Fix Sphinx warning in widgets

And improve the rendering of the docstring somewhat.
Merge pull request #3788 from jenshnielsen/widget_docs_fix

Fix Sphinx warning in widgets