eric6/UI/FindFileDialog.py

changeset 7229
53054eb5b15a
parent 7192
a22eee00b052
child 7264
bedbe458d792
equal deleted inserted replaced
7228:6037ddba57aa 7229:53054eb5b15a
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 9
10 from __future__ import unicode_literals
11 10
12 import os 11 import os
13 import re 12 import re
14 13
15 from PyQt5.QtCore import pyqtSignal, Qt, pyqtSlot 14 from PyQt5.QtCore import pyqtSignal, Qt, pyqtSlot
265 def __enableFindButton(self): 264 def __enableFindButton(self):
266 """ 265 """
267 Private slot called to enable the find button. 266 Private slot called to enable the find button.
268 """ 267 """
269 if self.findtextCombo.currentText() == "" or \ 268 if self.findtextCombo.currentText() == "" or \
270 (self.__replaceMode and
271 self.replacetextCombo.currentText() == "") or \
272 (self.dirButton.isChecked() and 269 (self.dirButton.isChecked() and
273 (self.dirPicker.currentText() == "" or 270 (self.dirPicker.currentText() == "" or
274 not os.path.exists(os.path.abspath( 271 not os.path.exists(os.path.abspath(
275 self.dirPicker.currentText())))) or \ 272 self.dirPicker.currentText())))) or \
276 (self.filterCheckBox.isChecked() and self.filterEdit.text() == ""): 273 (self.filterCheckBox.isChecked() and self.filterEdit.text() == ""):

eric ide

mercurial