Sun, 09 Mar 2025 14:16:35 +0100
MicroPython Interface
- Changed the WiFi and Bluetooth status dialogs to non-modal windows with a 'Refresh' button.
<!DOCTYPE html> <html><head> <title>eric7.MicroPython.WifiDialogs.WifiStatusDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.MicroPython.WifiDialogs.WifiStatusDialog</h1> <p> Module implementing a dialog to show the WiFi status of the connected device. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#WifiStatusDialog">WifiStatusDialog</a></td> <td>Class implementing a dialog to show the WiFi status of the connected device.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="WifiStatusDialog" ID="WifiStatusDialog"></a> <h2>WifiStatusDialog</h2> <p> Class implementing a dialog to show the WiFi status of the connected device. </p> <h3>Derived from</h3> QDialog, Ui_WifiStatusDialog <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="#WifiStatusDialog.__init__">WifiStatusDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#WifiStatusDialog.__createHeader">__createHeader</a></td> <td>Private method to create a header item.</td> </tr> <tr> <td><a href="#WifiStatusDialog.__createSubheader">__createSubheader</a></td> <td>Private method to create a subheader item.</td> </tr> <tr> <td><a href="#WifiStatusDialog.__showStatus">__showStatus</a></td> <td>Private slot to show the current WiFi status.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="WifiStatusDialog.__init__" ID="WifiStatusDialog.__init__"></a> <h4>WifiStatusDialog (Constructor)</h4> <b>WifiStatusDialog</b>(<i>microPython, parent=None</i>) <p> Constructor </p> <dl> <dt><i>microPython</i> (MicroPythonWidget)</dt> <dd> reference to the MicroPython widget </dd> <dt><i>parent</i> (QWidget (optional))</dt> <dd> reference to the parent widget (defaults to None) </dd> </dl> <a NAME="WifiStatusDialog.__createHeader" ID="WifiStatusDialog.__createHeader"></a> <h4>WifiStatusDialog.__createHeader</h4> <b>__createHeader</b>(<i>headerText</i>) <p> Private method to create a header item. </p> <dl> <dt><i>headerText</i> (str)</dt> <dd> text for the header item </dd> </dl> <dl> <dt>Return:</dt> <dd> reference to the created header item </dd> </dl> <dl> <dt>Return Type:</dt> <dd> QTreeWidgetItem </dd> </dl> <a NAME="WifiStatusDialog.__createSubheader" ID="WifiStatusDialog.__createSubheader"></a> <h4>WifiStatusDialog.__createSubheader</h4> <b>__createSubheader</b>(<i>parent, text</i>) <p> Private method to create a subheader item. </p> <dl> <dt><i>parent</i> (QTreeWidgetItem)</dt> <dd> reference to the parent item </dd> <dt><i>text</i> (str)</dt> <dd> text for the header item </dd> </dl> <dl> <dt>Return:</dt> <dd> reference to the created header item </dd> </dl> <dl> <dt>Return Type:</dt> <dd> QTreeWidgetItem </dd> </dl> <a NAME="WifiStatusDialog.__showStatus" ID="WifiStatusDialog.__showStatus"></a> <h4>WifiStatusDialog.__showStatus</h4> <b>__showStatus</b>(<i></i>) <p> Private slot to show the current WiFi status. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>