--- a/src/eric7/MicroPython/EthernetDialogs/Ui_EthernetStatusDialog.py Mon May 05 10:17:49 2025 +0200 +++ b/src/eric7/MicroPython/EthernetDialogs/Ui_EthernetStatusDialog.py Mon May 05 17:40:08 2025 +0200 @@ -1,6 +1,6 @@ # Form implementation generated from reading ui file 'src/eric7/MicroPython/EthernetDialogs/EthernetStatusDialog.ui' # -# Created by: PyQt6 UI code generator 6.7.0 +# Created by: PyQt6 UI code generator 6.9.0 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. @@ -25,24 +25,34 @@ self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.statusTree = QtWidgets.QTreeWidget(parent=EthernetStatusDialog) + self.statusTree.setAlternatingRowColors(True) self.statusTree.setRootIsDecorated(False) self.statusTree.setItemsExpandable(False) self.statusTree.setHeaderHidden(True) self.statusTree.setObjectName("statusTree") self.statusTree.headerItem().setText(0, "1") self.verticalLayout.addWidget(self.statusTree) + self.horizontalLayout = QtWidgets.QHBoxLayout() + self.horizontalLayout.setObjectName("horizontalLayout") + self.refreshButton = QtWidgets.QPushButton(parent=EthernetStatusDialog) + self.refreshButton.setObjectName("refreshButton") + self.horizontalLayout.addWidget(self.refreshButton) self.buttonBox = QtWidgets.QDialogButtonBox(parent=EthernetStatusDialog) self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close) self.buttonBox.setObjectName("buttonBox") - self.verticalLayout.addWidget(self.buttonBox) + self.horizontalLayout.addWidget(self.buttonBox) + self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(EthernetStatusDialog) self.buttonBox.accepted.connect(EthernetStatusDialog.accept) # type: ignore self.buttonBox.rejected.connect(EthernetStatusDialog.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(EthernetStatusDialog) + EthernetStatusDialog.setTabOrder(self.statusTree, self.refreshButton) def retranslateUi(self, EthernetStatusDialog): _translate = QtCore.QCoreApplication.translate EthernetStatusDialog.setWindowTitle(_translate("EthernetStatusDialog", "Ethernet Status")) self.label.setText(_translate("EthernetStatusDialog", "Ethernet Status")) + self.refreshButton.setToolTip(_translate("EthernetStatusDialog", "Press to refresh the status display.")) + self.refreshButton.setText(_translate("EthernetStatusDialog", "Refresh"))