src/eric7/Plugins/VcsPlugins/vcsGit/GitSubmodulesListDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9473
3f23dbf37dbe
--- a/src/eric7/Plugins/VcsPlugins/vcsGit/GitSubmodulesListDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsGit/GitSubmodulesListDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,10 +17,11 @@
     """
     Class implementing a dialog to list the defined submodules.
     """
+
     def __init__(self, submodules, parent=None):
         """
         Constructor
-        
+
         @param submodules list of submodule data to be shown
         @type list of dictionaries with submodule name, path, URL and branch
         @param parent reference to the parent widget
@@ -28,18 +29,22 @@
         """
         super().__init__(parent)
         self.setupUi(self)
-        
+
         for submodule in submodules:
-            QTreeWidgetItem(self.submodulesList, [
-                submodule["name"],
-                submodule["path"],
-                submodule["url"],
-                submodule["branch"]
-            ])
+            QTreeWidgetItem(
+                self.submodulesList,
+                [
+                    submodule["name"],
+                    submodule["path"],
+                    submodule["url"],
+                    submodule["branch"],
+                ],
+            )
         self.submodulesList.header().resizeSections(
-            QHeaderView.ResizeMode.ResizeToContents)
+            QHeaderView.ResizeMode.ResizeToContents
+        )
         self.submodulesList.header().setStretchLastSection(True)
-        
+
         self.submodulesList.setSortingEnabled(True)
         self.submodulesList.sortItems(0, Qt.SortOrder.AscendingOrder)
         self.submodulesList.setSortingEnabled(False)

eric ide

mercurial