Project/AddFileDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2478
c4d8d795d356
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to add a file to the project. 7 Module implementing a dialog to add a file to the project.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import os 12 import os
11 13
12 from PyQt4.QtCore import pyqtSlot 14 from PyQt4.QtCore import pyqtSlot
13 from PyQt4.QtGui import QDialog 15 from PyQt4.QtGui import QDialog
33 @param parent parent widget of this dialog (QWidget) 35 @param parent parent widget of this dialog (QWidget)
34 @param filter filter specification for the file to add (string) 36 @param filter filter specification for the file to add (string)
35 @param name name of this dialog (string) 37 @param name name of this dialog (string)
36 @param startdir start directory for the selection dialog 38 @param startdir start directory for the selection dialog
37 """ 39 """
38 super().__init__(parent) 40 super(AddFileDialog, self).__init__(parent)
39 if name: 41 if name:
40 self.setObjectName(name) 42 self.setObjectName(name)
41 self.setupUi(self) 43 self.setupUi(self)
42 44
43 self.targetDirCompleter = E5DirCompleter(self.targetDirEdit) 45 self.targetDirCompleter = E5DirCompleter(self.targetDirEdit)

eric ide

mercurial