ProjectDjango/DjangoCheckOptionsDialog.py

branch
eric7
changeset 172
ea7980ded4f3
parent 169
b8f263e05c39
child 175
30cb5e553e7e
equal deleted inserted replaced
171:af99f0984f20 172:ea7980ded4f3
7 Module implementing a dialog to enter the options for a check operation. 7 Module implementing a dialog to enter the options for a check operation.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt5.QtCore import pyqtSlot, Qt, QProcess 12 from PyQt6.QtCore import pyqtSlot, Qt, QProcess
13 from PyQt5.QtWidgets import QDialog 13 from PyQt6.QtWidgets import QDialog
14 14
15 from E5Gui import E5FileDialog 15 from EricWidgets import EricFileDialog
16 16
17 from .Ui_DjangoCheckOptionsDialog import Ui_DjangoCheckOptionsDialog 17 from .Ui_DjangoCheckOptionsDialog import Ui_DjangoCheckOptionsDialog
18 18
19 import Preferences 19 import Preferences
20 import Utilities 20 import Utilities
70 Private slot to select a settings file via a file selection dialog. 70 Private slot to select a settings file via a file selection dialog.
71 """ 71 """
72 path = self.__moduleToPath(self.settingsFileEdit.text()) 72 path = self.__moduleToPath(self.settingsFileEdit.text())
73 if not path: 73 if not path:
74 path = self.__path 74 path = self.__path
75 settingsFile = E5FileDialog.getOpenFileName( 75 settingsFile = EricFileDialog.getOpenFileName(
76 self, 76 self,
77 self.tr("Select settings file"), 77 self.tr("Select settings file"),
78 path, 78 path,
79 self.tr("Python Files (*.py)")) 79 self.tr("Python Files (*.py)"))
80 80
152 for line in output.splitlines(): 152 for line in output.splitlines():
153 self.tagsList.addItem(line.strip()) 153 self.tagsList.addItem(line.strip())
154 154
155 # step 4: re-select tags 155 # step 4: re-select tags
156 for tag in selectedTags: 156 for tag in selectedTags:
157 items = self.tagsList.findItems(tag, Qt.MatchCaseSensitive) 157 items = self.tagsList.findItems(
158 tag, Qt.MatchFlag.MatchCaseSensitive)
158 if items: 159 if items:
159 items[0].setSelected(True) 160 items[0].setSelected(True)
160 161
161 def getData(self): 162 def getData(self):
162 """ 163 """

eric ide

mercurial