<div dir="ltr">Thanks Raymond :)<div><br></div><div>I change a little bit but works perfect.</div><div><br></div><div>QObject.connect(self.dlg.help_pushButton, SIGNAL("clicked()"), <br>self.showHelp)<br></div><div><br></div><div>to</div><div><br></div><div>self.dlg.help_pushButton.clicked.connect(self.showHelp)<br></div><div><br></div><div><br></div><div> I will try to put an example in the QGIS documentation to be more clear.</div><div><br></div><div>Cheers,</div><div>João AKA James :P<br><br><div class="gmail_quote"><div dir="ltr">Raymond Nijssen <<a href="mailto:r.nijssen@terglobo.nl">r.nijssen@terglobo.nl</a>> escreveu no dia quarta, 22/08/2018 à(s) 14:09:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Joao,<br>
<br>
I used it in a qgis2 plugin:<br>
<br>
<br>
# import it:<br>
<br>
from qgis.utils import showPluginHelp<br>
<br>
<br>
<br>
# create help function<br>
<br>
def showHelp(self):<br>
     """Reacts on help button"""<br>
     showPluginHelp(filename = 'help/index')<br>
<br>
<br>
# connect it to some button (here in the old way):<br>
<br>
QObject.connect(self.dlg.help_pushButton, SIGNAL("clicked()"), <br>
self.showHelp)<br>
<br>
<br>
<br>
It is here:<br>
<a href="https://github.com/opengeogroep/AERIUS-QGIS-plugins/blob/master/ImaerReader/imaer_reader.py" rel="noreferrer" target="_blank">https://github.com/opengeogroep/AERIUS-QGIS-plugins/blob/master/ImaerReader/imaer_reader.py</a><br>
<br>
Regards,<br>
Raymond<br>
<br>
<br>
<br>
On 22-08-18 14:51, João Gaspar wrote:<br>
> Hi devs,<br>
> I'm using the sphinx to help documentation to a plugin. I saw in QGIS <br>
> documentation that we can add documentation using the function <br>
> showPluginHelp().<br>
> <br>
> Where i can put the function showPluginHelp() in the plugin.py file?<br>
> <br>
> Regards<br>
> <br>
> <br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> <br>
<br>
-- <br>
Terglobo<br>
Fahrenheitstraat 1<br>
5223 BJ 's-Hertogenbosch<br>
The Netherlands<br>
+31 (0) 6 25 31 49 83<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div></div></div>