--- a/src/eric7/MicroPython/WifiDialogs/WifiStatusDialog.py Tue Feb 28 10:14:12 2023 +0100 +++ b/src/eric7/MicroPython/WifiDialogs/WifiStatusDialog.py Tue Feb 28 17:54:33 2023 +0100 @@ -100,6 +100,29 @@ ], ) + if "ap_ssid" in clientStatus: + apHeader = self.__createSubheader( + header, self.tr("Connected Access Point") + ) + QTreeWidgetItem( + apHeader, [self.tr("Name"), clientStatus["ap_ssid"]] + ) + QTreeWidgetItem( + apHeader, [self.tr("Channel"), str(clientStatus["ap_channel"])] + ) + QTreeWidgetItem( + apHeader, [self.tr("MAC-Address"), clientStatus["ap_bssid"]] + ) + QTreeWidgetItem( + apHeader, [self.tr("RSSI [dBm]"), str(clientStatus["ap_rssi"])] + ) + QTreeWidgetItem( + apHeader, [self.tr("Security"), clientStatus["ap_security"]] + ) + QTreeWidgetItem( + apHeader, [self.tr("Country"), clientStatus["ap_country"]] + ) + # access point interface if apStatus: header = self.__createHeader(self.tr("Access Point")) @@ -168,3 +191,24 @@ headerItem.setFont(0, font) return headerItem + + def __createSubheader(self, parent, text): + """ + Private method to create a subheader item. + + @param parent reference to the parent item + @type QTreeWidgetItem + @param text text for the header item + @type str + @return reference to the created header item + @rtype QTreeWidgetItem + """ + headerItem = QTreeWidgetItem(parent, [text]) + headerItem.setExpanded(True) + headerItem.setFirstColumnSpanned(True) + + font = headerItem.font(0) + font.setUnderline(True) + headerItem.setFont(0, font) + + return headerItem