Tue, 06 May 2025 11:08:30 +0200
Changed the 'show()' logic of the Ethernet Status dialog.
<!DOCTYPE html> <html><head> <title>eric7.MicroPython.EthernetDialogs.EthernetStatusDialog</title> <meta charset="UTF-8"> <link rel="stylesheet" href="styles.css"> </head> <body> <a NAME="top" ID="top"></a> <h1>eric7.MicroPython.EthernetDialogs.EthernetStatusDialog</h1> <p> Module implementing a dialog to show Ethernet related status information. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#EthernetStatusDialog">EthernetStatusDialog</a></td> <td>Class implementing a dialog to show Ethernet related status information.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="EthernetStatusDialog" ID="EthernetStatusDialog"></a> <h2>EthernetStatusDialog</h2> <p> Class implementing a dialog to show Ethernet related status information. </p> <h3>Derived from</h3> QDialog, Ui_EthernetStatusDialog <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="#EthernetStatusDialog.__init__">EthernetStatusDialog</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#EthernetStatusDialog.__createHeader">__createHeader</a></td> <td>Private method to create a subheader item.</td> </tr> <tr> <td><a href="#EthernetStatusDialog.__showStatus">__showStatus</a></td> <td>Private slot to show the current WiFi status.</td> </tr> <tr> <td><a href="#EthernetStatusDialog.show">show</a></td> <td>Public slot to show the dialog and populate the status.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="EthernetStatusDialog.__init__" ID="EthernetStatusDialog.__init__"></a> <h4>EthernetStatusDialog (Constructor)</h4> <b>EthernetStatusDialog</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="EthernetStatusDialog.__createHeader" ID="EthernetStatusDialog.__createHeader"></a> <h4>EthernetStatusDialog.__createHeader</h4> <b>__createHeader</b>(<i>parent, text, underlined=True</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> <dt><i>underlined</i> (bool (optional))</dt> <dd> flag indicating an underlined header (defaults to True) </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="EthernetStatusDialog.__showStatus" ID="EthernetStatusDialog.__showStatus"></a> <h4>EthernetStatusDialog.__showStatus</h4> <b>__showStatus</b>(<i></i>) <p> Private slot to show the current WiFi status. </p> <a NAME="EthernetStatusDialog.show" ID="EthernetStatusDialog.show"></a> <h4>EthernetStatusDialog.show</h4> <b>show</b>(<i></i>) <p> Public slot to show the dialog and populate the status. </p> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>