Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
<!DOCTYPE html> <html><head> <title>eric7.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader</h1> <p> Module implementing the downloader for GreaseMonkey scripts. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#GreaseMonkeyDownloadType">GreaseMonkeyDownloadType</a></td> <td>Class defining the download types.</td> </tr> <tr> <td><a href="#GreaseMonkeyDownloader">GreaseMonkeyDownloader</a></td> <td>Class implementing the downloader for GreaseMonkey scripts.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="GreaseMonkeyDownloadType" ID="GreaseMonkeyDownloadType"></a> <h2>GreaseMonkeyDownloadType</h2> <p> Class defining the download types. </p> <h3>Derived from</h3> enum.Enum <h3>Class Attributes</h3> <table> <tr><td>MainScript</td></tr> <tr><td>RequireScript</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> <a NAME="GreaseMonkeyDownloader" ID="GreaseMonkeyDownloader"></a> <h2>GreaseMonkeyDownloader</h2> <p> Class implementing the downloader for GreaseMonkey scripts. </p> <h3>Signals</h3> <dl> <dt>error()</dt> <dd> emitted to indicate a script download error </dd> <dt>finished(fileName)</dt> <dd> emitted to indicate the end of a script download (str) </dd> </dl> <h3>Derived from</h3> QObject <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#GreaseMonkeyDownloader.__init__">GreaseMonkeyDownloader</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#GreaseMonkeyDownloader.__requireDownloaded">__requireDownloaded</a></td> <td>Private slot to handle the finished download of a required script.</td> </tr> <tr> <td><a href="#GreaseMonkeyDownloader.__scriptDownloaded">__scriptDownloaded</a></td> <td>Private slot to handle the finished download of a script.</td> </tr> <tr> <td><a href="#GreaseMonkeyDownloader.updateScript">updateScript</a></td> <td>Public method to set the file name for the script to be downloaded.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="GreaseMonkeyDownloader.__init__" ID="GreaseMonkeyDownloader.__init__"></a> <h4>GreaseMonkeyDownloader (Constructor)</h4> <b>GreaseMonkeyDownloader</b>(<i>url, manager, mode</i>) <p> Constructor </p> <dl> <dt><i>url</i> (QUrl)</dt> <dd> URL to download script from </dd> <dt><i>manager</i> (GreaseMonkeyManager)</dt> <dd> reference to the GreaseMonkey manager </dd> <dt><i>mode</i> (GreaseMonkeyDownloadType)</dt> <dd> download mode </dd> </dl> <a NAME="GreaseMonkeyDownloader.__requireDownloaded" ID="GreaseMonkeyDownloader.__requireDownloaded"></a> <h4>GreaseMonkeyDownloader.__requireDownloaded</h4> <b>__requireDownloaded</b>(<i></i>) <p> Private slot to handle the finished download of a required script. </p> <a NAME="GreaseMonkeyDownloader.__scriptDownloaded" ID="GreaseMonkeyDownloader.__scriptDownloaded"></a> <h4>GreaseMonkeyDownloader.__scriptDownloaded</h4> <b>__scriptDownloaded</b>(<i></i>) <p> Private slot to handle the finished download of a script. </p> <a NAME="GreaseMonkeyDownloader.updateScript" ID="GreaseMonkeyDownloader.updateScript"></a> <h4>GreaseMonkeyDownloader.updateScript</h4> <b>updateScript</b>(<i>fileName</i>) <p> Public method to set the file name for the script to be downloaded. </p> <dl> <dt><i>fileName</i> (str)</dt> <dd> file name for the script </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>