Project/AddDirectoryDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2995
63d874899b8b
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 Project/AddDirectoryDialog.py
--- a/Project/AddDirectoryDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Project/AddDirectoryDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -46,24 +46,35 @@
         self.ppath = pro.ppath
         self.targetDirEdit.setText(self.ppath)
         self.startdir = startdir
-        self.on_filterComboBox_highlighted('(*.py)')  # enable all dialog elements
+        self.on_filterComboBox_highlighted('(*.py)')
+        # enable all dialog elements
         if filter == 'source':  # it is a source file
-            self.filterComboBox.addItem(self.trUtf8("Source Files"), "SOURCES")
+            self.filterComboBox.addItem(
+                self.trUtf8("Source Files"), "SOURCES")
         elif filter == 'form':
-            self.filterComboBox.addItem(self.trUtf8("Forms Files"), "FORMS")
+            self.filterComboBox.addItem(
+                self.trUtf8("Forms Files"), "FORMS")
         elif filter == 'resource':
-            self.filterComboBox.addItem(self.trUtf8("Resource Files"), "RESOURCES")
+            self.filterComboBox.addItem(
+                self.trUtf8("Resource Files"), "RESOURCES")
         elif filter == 'interface':
-            self.filterComboBox.addItem(self.trUtf8("Interface Files"), "INTERFACES")
+            self.filterComboBox.addItem(
+                self.trUtf8("Interface Files"), "INTERFACES")
         elif filter == 'others':
-            self.filterComboBox.addItem(self.trUtf8("Other Files (*)"), "OTHERS")
+            self.filterComboBox.addItem(
+                self.trUtf8("Other Files (*)"), "OTHERS")
             self.on_filterComboBox_highlighted('(*)')
         else:
-            self.filterComboBox.addItem(self.trUtf8("Source Files"), "SOURCES")
-            self.filterComboBox.addItem(self.trUtf8("Forms Files"), "FORMS")
-            self.filterComboBox.addItem(self.trUtf8("Resource Files"), "RESOURCES")
-            self.filterComboBox.addItem(self.trUtf8("Interface Files"), "INTERFACES")
-            self.filterComboBox.addItem(self.trUtf8("Other Files (*)"), "OTHERS")
+            self.filterComboBox.addItem(
+                self.trUtf8("Source Files"), "SOURCES")
+            self.filterComboBox.addItem(
+                self.trUtf8("Forms Files"), "FORMS")
+            self.filterComboBox.addItem(
+                self.trUtf8("Resource Files"), "RESOURCES")
+            self.filterComboBox.addItem(
+                self.trUtf8("Interface Files"), "INTERFACES")
+            self.filterComboBox.addItem(
+                self.trUtf8("Other Files (*)"), "OTHERS")
         self.filterComboBox.setCurrentIndex(0)
         
     @pyqtSlot(str)
@@ -89,7 +100,7 @@
         Private slot to display a directory selection dialog.
         
         @param textEdit field for the display of the selected directory name
-                (QLineEdit)
+            (QLineEdit)
         """
         startdir = textEdit.text()
         if not startdir and self.startdir is not None:

eric ide

mercurial