src/eric7/CondaInterface/CondaPackageDetailsWidget.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/CondaInterface/CondaPackageDetailsWidget.py
--- a/src/eric7/CondaInterface/CondaPackageDetailsWidget.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/CondaInterface/CondaPackageDetailsWidget.py	Wed Jul 13 14:55:47 2022 +0200
@@ -19,10 +19,11 @@
     """
     Class implementing a widget to show package details.
     """
+
     def __init__(self, details, parent=None):
         """
         Constructor
-        
+
         @param details dictionary containing the package details
         @type dict
         @param parent reference to the parent widget
@@ -30,9 +31,12 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
-        self.headerLabel.setText(self.tr("<b>{0} / {1} / {2}</b>").format(
-            details["name"], details["version"], details["build"]))
+
+        self.headerLabel.setText(
+            self.tr("<b>{0} / {1} / {2}</b>").format(
+                details["name"], details["version"], details["build"]
+            )
+        )
         if "fn" in details:
             self.filenameLabel.setText(details["fn"])
         if "size" in details:
@@ -53,12 +57,11 @@
             self.platformLabel.setText(self.tr("unknown"))
         if "depends" in details:
             self.dependenciesEdit.setPlainText("\n".join(details["depends"]))
-        
+
         if "timestamp" in details:
-            dt = QDateTime.fromMSecsSinceEpoch(details["timestamp"],
-                                               Qt.TimeSpec.UTC)
+            dt = QDateTime.fromMSecsSinceEpoch(details["timestamp"], Qt.TimeSpec.UTC)
             self.timestampLabel.setText(dt.toString("yyyy-MM-dd hh:mm:ss t"))
-        
+
         self.resize(600, 450)
 
 
@@ -66,10 +69,11 @@
     """
     Class implementing a dialog to show package details.
     """
+
     def __init__(self, details, parent=None):
         """
         Constructor
-        
+
         @param details dictionary containing the package details
         @type dict
         @param parent reference to the parent widget
@@ -77,20 +81,19 @@
         """
         super().__init__(parent)
         self.setSizeGripEnabled(True)
-        
+
         self.__layout = QVBoxLayout(self)
         self.setLayout(self.__layout)
-        
+
         self.__cw = CondaPackageDetailsWidget(details, self)
         size = self.__cw.size()
         self.__layout.addWidget(self.__cw)
         self.__buttonBox = QDialogButtonBox(self)
-        self.__buttonBox.setStandardButtons(
-            QDialogButtonBox.StandardButton.Close)
+        self.__buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Close)
         self.__layout.addWidget(self.__buttonBox)
-        
+
         self.resize(size)
         self.setWindowTitle(self.tr("Package Details"))
-        
+
         self.__buttonBox.accepted.connect(self.accept)
         self.__buttonBox.rejected.connect(self.reject)

eric ide

mercurial