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.SpeedDial.PageThumbnailer</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.WebBrowser.SpeedDial.PageThumbnailer</h1> <p> Module implementing an object to create a thumbnail image of a web site. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#PageThumbnailer">PageThumbnailer</a></td> <td>Class implementing a thumbnail creator for web sites.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="PageThumbnailer" ID="PageThumbnailer"></a> <h2>PageThumbnailer</h2> <p> Class implementing a thumbnail creator for web sites. </p> <h3>Signals</h3> <dl> <dt>thumbnailCreated(QPixmap)</dt> <dd> emitted after the thumbnail has been created </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="#PageThumbnailer.__init__">PageThumbnailer</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#PageThumbnailer.__createThumbnail">__createThumbnail</a></td> <td>Private slot creating the thumbnail of the web site.</td> </tr> <tr> <td><a href="#PageThumbnailer.__grabThumbnail">__grabThumbnail</a></td> <td>Private slot to grab the thumbnail image from the view.</td> </tr> <tr> <td><a href="#PageThumbnailer.loadTitle">loadTitle</a></td> <td>Public method to check, if the title is loaded from the web site.</td> </tr> <tr> <td><a href="#PageThumbnailer.setLoadTitle">setLoadTitle</a></td> <td>Public method to set a flag indicating to load the title from the web site.</td> </tr> <tr> <td><a href="#PageThumbnailer.setSize">setSize</a></td> <td>Public method to set the size of the image.</td> </tr> <tr> <td><a href="#PageThumbnailer.setUrl">setUrl</a></td> <td>Public method to set the URL of the site to be thumbnailed.</td> </tr> <tr> <td><a href="#PageThumbnailer.start">start</a></td> <td>Public method to start the thumbnailing action.</td> </tr> <tr> <td><a href="#PageThumbnailer.title">title</a></td> <td>Public method to get the title of the thumbnail.</td> </tr> <tr> <td><a href="#PageThumbnailer.url">url</a></td> <td>Public method to get the URL of the thumbnail.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="PageThumbnailer.__init__" ID="PageThumbnailer.__init__"></a> <h4>PageThumbnailer (Constructor)</h4> <b>PageThumbnailer</b>(<i>parent=None</i>) <p> Constructor </p> <dl> <dt><i>parent</i> (QObject)</dt> <dd> reference to the parent object </dd> </dl> <a NAME="PageThumbnailer.__createThumbnail" ID="PageThumbnailer.__createThumbnail"></a> <h4>PageThumbnailer.__createThumbnail</h4> <b>__createThumbnail</b>(<i>status</i>) <p> Private slot creating the thumbnail of the web site. </p> <dl> <dt><i>status</i> (bool)</dt> <dd> flag indicating a successful load of the web site </dd> </dl> <a NAME="PageThumbnailer.__grabThumbnail" ID="PageThumbnailer.__grabThumbnail"></a> <h4>PageThumbnailer.__grabThumbnail</h4> <b>__grabThumbnail</b>(<i></i>) <p> Private slot to grab the thumbnail image from the view. </p> <a NAME="PageThumbnailer.loadTitle" ID="PageThumbnailer.loadTitle"></a> <h4>PageThumbnailer.loadTitle</h4> <b>loadTitle</b>(<i></i>) <p> Public method to check, if the title is loaded from the web site. </p> <dl> <dt>Return:</dt> <dd> flag indicating, that the title is loaded </dd> </dl> <dl> <dt>Return Type:</dt> <dd> bool </dd> </dl> <a NAME="PageThumbnailer.setLoadTitle" ID="PageThumbnailer.setLoadTitle"></a> <h4>PageThumbnailer.setLoadTitle</h4> <b>setLoadTitle</b>(<i>load</i>) <p> Public method to set a flag indicating to load the title from the web site. </p> <dl> <dt><i>load</i> (bool)</dt> <dd> flag indicating to load the title </dd> </dl> <a NAME="PageThumbnailer.setSize" ID="PageThumbnailer.setSize"></a> <h4>PageThumbnailer.setSize</h4> <b>setSize</b>(<i>size</i>) <p> Public method to set the size of the image. </p> <dl> <dt><i>size</i> (QSize)</dt> <dd> size of the image </dd> </dl> <a NAME="PageThumbnailer.setUrl" ID="PageThumbnailer.setUrl"></a> <h4>PageThumbnailer.setUrl</h4> <b>setUrl</b>(<i>url</i>) <p> Public method to set the URL of the site to be thumbnailed. </p> <dl> <dt><i>url</i> (QUrl)</dt> <dd> URL of the web site </dd> </dl> <a NAME="PageThumbnailer.start" ID="PageThumbnailer.start"></a> <h4>PageThumbnailer.start</h4> <b>start</b>(<i></i>) <p> Public method to start the thumbnailing action. </p> <a NAME="PageThumbnailer.title" ID="PageThumbnailer.title"></a> <h4>PageThumbnailer.title</h4> <b>title</b>(<i></i>) <p> Public method to get the title of the thumbnail. </p> <dl> <dt>Return:</dt> <dd> title of the thumbnail </dd> </dl> <dl> <dt>Return Type:</dt> <dd> str </dd> </dl> <a NAME="PageThumbnailer.url" ID="PageThumbnailer.url"></a> <h4>PageThumbnailer.url</h4> <b>url</b>(<i></i>) <p> Public method to get the URL of the thumbnail. </p> <dl> <dt>Return:</dt> <dd> URL of the thumbnail </dd> </dl> <dl> <dt>Return Type:</dt> <dd> QUrl </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>