UI/FindFileDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to search for text in files. 7 Module implementing a dialog to search for text in files.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import os 12 import os
11 import re 13 import re
12 14
13 from PyQt4.QtCore import pyqtSignal, Qt, pyqtSlot 15 from PyQt4.QtCore import pyqtSignal, Qt, pyqtSlot
49 Constructor 51 Constructor
50 52
51 @param project reference to the project object 53 @param project reference to the project object
52 @param parent parent widget of this dialog (QWidget) 54 @param parent parent widget of this dialog (QWidget)
53 """ 55 """
54 super().__init__(parent) 56 super(FindFileDialog, self).__init__(parent)
55 self.setupUi(self) 57 self.setupUi(self)
56 self.setWindowFlags(Qt.WindowFlags(Qt.Window)) 58 self.setWindowFlags(Qt.WindowFlags(Qt.Window))
57 59
58 self.__replaceMode = replaceMode 60 self.__replaceMode = replaceMode
59 61
180 182
181 if self.__replaceMode: 183 if self.__replaceMode:
182 self.findList.clear() 184 self.findList.clear()
183 self.replacetextCombo.setEditText("") 185 self.replacetextCombo.setEditText("")
184 186
185 super().show() 187 super(FindFileDialog, self).show()
186 188
187 def on_findtextCombo_editTextChanged(self, text): 189 def on_findtextCombo_editTextChanged(self, text):
188 """ 190 """
189 Private slot to handle the editTextChanged signal of the find 191 Private slot to handle the editTextChanged signal of the find
190 text combo. 192 text combo.

eric ide

mercurial