eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 8928
d856023fbeb0
parent 8881
54e42bc2437a
child 8945
b6be65111565
--- a/eric7/MicroPython/MicroPythonWidget.py	Sat Jan 15 19:57:03 2022 +0100
+++ b/eric7/MicroPython/MicroPythonWidget.py	Sun Jan 16 20:28:42 2022 +0100
@@ -1333,6 +1333,9 @@
         act = self.__superMenu.addAction(
             self.tr("Show Implementation"), self.__showImplementation)
         act.setEnabled(self.__connected)
+        act = self.__superMenu.addAction(
+            self.tr("Show Board Data"), self.__showBoardInformation)
+        act.setEnabled(self.__connected)
         self.__superMenu.addSeparator()
         if hasTime:
             act = self.__superMenu.addAction(
@@ -1444,6 +1447,20 @@
             self.__showError("getImplementation()", str(exc))
     
     @pyqtSlot()
+    def __showBoardInformation(self):
+        """
+        Private slot to show all available information about a board.
+        """
+        try:
+            boardInfo = self.__interface.getBoardInformation()
+            
+            from .BoardDataDialog import BoardDataDialog
+            dlg = BoardDataDialog(boardInfo)
+            dlg.exec()
+        except Exception as exc:
+            self.__showError("getBoardInformation()", str(exc))
+    
+    @pyqtSlot()
     def __synchronizeTime(self, quiet=False):
         """
         Private slot to set the time of the connected device to the local

eric ide

mercurial