<div dir="ltr"><div>Chris,<br><br></div>Thanks for that tip. That is exactly what I needed.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 19, 2016 at 12:56 PM, Chris Crook <span dir="ltr"><<a href="mailto:ccrook@linz.govt.nz" target="_blank">ccrook@linz.govt.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Calvin<br>
<br>
Method 2 is well supported by QGIS.  Put the help in index.html in the plugin directory, then<br>
<br>
def showMyPluginHelp(self):<br>
    from qgis import utils<br>
    utils.showPluginHelp()<br>
<br>
The showPluginHelp function will look for index.html by default, but you can specify a filename to use instead of index.<br>
It also has a section argument which will go to an html anchor in the help file (<a name="mysection">...</a><br>
<br>
<a href="https://github.com/qgis/QGIS/blob/master/python/utils.py#L441" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/<wbr>blob/master/python/utils.py#<wbr>L441</a><br>
<br>
I'm not sure if this is in the PyQt developers cookbook or in plugin builder?<br>
<br>
Cheers<br>
Chri<br>
______________________________<wbr>__________<br>
From: Qgis-developer [<a href="mailto:qgis-developer-bounces@lists.osgeo.org">qgis-developer-bounces@lists.<wbr>osgeo.org</a>] On Behalf Of C Hamilton [<a href="mailto:adenaculture@gmail.com">adenaculture@gmail.com</a>]<br>
Sent: 19 November 2016 09:13<br>
To: qgis-developer<br>
Subject: [Qgis-developer] Best Practice for QGIS Plugin Help Documentation<br>
<div><div class="h5"><br>
As part of my plugins I want to have a Help button that displays the documentation. What method do you recommend? I see various authors do it differently. I see three methods for when a help button is clicked on.<br>
<br>
1. Launch a web browser to point to the documentation on the web.<br>
2. Have the documentation as a part of the plugin and launch a web browser to view it.<br>
3. Display a PyQt window with the documentation in it.<br>
<br>
I don't consider #1 as a good option because it fails if you happen to be disconnected from the web. What are your thoughts on #2 or #3 or do you have a better option?<br>
<br>
Thanks,<br>
<br>
Calvin<br>
<br>
</div></div>This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or <a href="mailto:info@linz.govt.nz">info@linz.govt.nz</a>) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.<br>
</blockquote></div><br></div>