src/eric7/MicroPython/WifiDialogs/WifiNetworksWindow.py

branch
mpy_network
changeset 9789
d8e0ab86ddca
parent 9781
3112f77f722b
child 9828
32c8a5b57332
diff -r 12294115900a -r d8e0ab86ddca src/eric7/MicroPython/WifiDialogs/WifiNetworksWindow.py
--- a/src/eric7/MicroPython/WifiDialogs/WifiNetworksWindow.py	Wed Feb 22 07:48:57 2023 +0100
+++ b/src/eric7/MicroPython/WifiDialogs/WifiNetworksWindow.py	Wed Feb 22 08:20:34 2023 +0100
@@ -49,7 +49,7 @@
 
     def scanNetworks(self):
         """
-        Private method to ask the device for a network scan and display the result.
+        Public method to ask the device for a network scan and display the result.
         """
         self.networkList.clear()
         self.statusLabel.clear()
@@ -67,7 +67,8 @@
                 self.tr("Scan WiFi Networks"),
                 self.tr(
                     """<p>The scan for available WiFi networks failed.</p>"""
-                    """<p>Reason: {0}</p>"""),
+                    """<p>Reason: {0}</p>"""
+                ),
             )
             if self.periodicCheckBox.isChecked():
                 self.periodicCheckBox.setChecked(False)
@@ -84,7 +85,7 @@
                         str(network[2]),
                         network[1],
                         str(network[3]),
-                        network[4]
+                        network[4],
                     ],
                 )
                 itm.setTextAlignment(1, Qt.AlignmentFlag.AlignHCenter)
@@ -114,7 +115,7 @@
 
     def closeEvent(self, evt):
         """
-        Public method to handle a window close event.
+        Protected method to handle a window close event.
 
         @param evt reference to the close event
         @type QCloseEvent
@@ -145,4 +146,4 @@
         @type int
         """
         if self.periodicCheckBox.isChecked():
-            self.__scanTimer.setInterval(interval* 1000)
+            self.__scanTimer.setInterval(interval * 1000)

eric ide

mercurial