src/eric7/Project/AddFoundFilesDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9290
fc0cbfb71714
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Project/AddFoundFilesDialog.py
--- a/src/eric7/Project/AddFoundFilesDialog.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Project/AddFoundFilesDialog.py	Wed Jul 13 14:55:47 2022 +0200
@@ -16,15 +16,16 @@
 class AddFoundFilesDialog(QDialog, Ui_AddFoundFilesDialog):
     """
     Class implementing a dialog to show the found files to the user.
-    
+
     The found files are displayed in a listview. Pressing the 'Add All' button
     adds all files to the current project, the 'Add Selected' button adds only
     the selected files and the 'Cancel' button cancels the operation.
     """
+
     def __init__(self, files, parent=None, name=None):
         """
         Constructor
-        
+
         @param files list of files, that have been found for addition
             (list of strings)
         @param parent parent widget of this dialog (QWidget)
@@ -34,50 +35,51 @@
         if name:
             self.setObjectName(name)
         self.setupUi(self)
-        
+
         self.addAllButton = self.buttonBox.addButton(
-            self.tr("Add All"), QDialogButtonBox.ButtonRole.AcceptRole)
+            self.tr("Add All"), QDialogButtonBox.ButtonRole.AcceptRole
+        )
         self.addAllButton.setToolTip(self.tr("Add all files."))
         self.addSelectedButton = self.buttonBox.addButton(
-            self.tr("Add Selected"), QDialogButtonBox.ButtonRole.AcceptRole)
-        self.addSelectedButton.setToolTip(
-            self.tr("Add selected files only."))
-        
+            self.tr("Add Selected"), QDialogButtonBox.ButtonRole.AcceptRole
+        )
+        self.addSelectedButton.setToolTip(self.tr("Add selected files only."))
+
         self.fileList.addItems(files)
-        
+
     def on_buttonBox_clicked(self, button):
         """
         Private slot called by a button of the button box clicked.
-        
+
         @param button button that was clicked (QAbstractButton)
         """
         if button == self.addAllButton:
             self.on_addAllButton_clicked()
         elif button == self.addSelectedButton:
             self.on_addSelectedButton_clicked()
-        
+
     @pyqtSlot()
     def on_addAllButton_clicked(self):
         """
         Private slot to handle the 'Add All' button press.
-        
+
         Always returns the value 1 (integer).
         """
         self.done(1)
-        
+
     @pyqtSlot()
     def on_addSelectedButton_clicked(self):
         """
         Private slot to handle the 'Add Selected' button press.
-        
+
         Always returns the value 2 (integer).
         """
         self.done(2)
-        
+
     def getSelection(self):
         """
         Public method to return the selected items.
-        
+
         @return list of selected files (list of strings)
         """
         list_ = []

eric ide

mercurial