VultureChecker/EditWhiteListDialog.py

branch
eric7
changeset 79
47e46cd3bb23
parent 69
3c2922b45a9f
child 85
6a17f25cefa1
equal deleted inserted replaced
78:e7f0ffa28c28 79:47e46cd3bb23
5 5
6 """ 6 """
7 Module implementing the whitelist edit dialog. 7 Module implementing the whitelist edit dialog.
8 """ 8 """
9 9
10 from PyQt5.QtCore import pyqtSlot 10 from PyQt6.QtCore import pyqtSlot
11 from PyQt5.QtWidgets import QDialog, QInputDialog, QLineEdit 11 from PyQt6.QtWidgets import QDialog, QInputDialog, QLineEdit
12 12
13 from .Ui_EditWhiteListDialog import Ui_EditWhiteListDialog 13 from .Ui_EditWhiteListDialog import Ui_EditWhiteListDialog
14 14
15 15
16 class EditWhiteListDialog(QDialog, Ui_EditWhiteListDialog): 16 class EditWhiteListDialog(QDialog, Ui_EditWhiteListDialog):
128 name, ok = QInputDialog.getText( 128 name, ok = QInputDialog.getText(
129 self, 129 self,
130 self.tr("Add to Whitelist"), 130 self.tr("Add to Whitelist"),
131 self.tr("Enter a name or wildcard pattern to be added to the" 131 self.tr("Enter a name or wildcard pattern to be added to the"
132 " current whitelist:"), 132 " current whitelist:"),
133 QLineEdit.Normal) 133 QLineEdit.EchoMode.Normal)
134 if ok and bool(name): 134 if ok and bool(name):
135 curr = self.__lists[self.listsWidget.currentIndex()] 135 curr = self.__lists[self.listsWidget.currentIndex()]
136 if curr is self.patternsList or self.__isPattern(name): 136 if curr is self.patternsList or self.__isPattern(name):
137 self.patternsList.addItem(name) 137 self.patternsList.addItem(name)
138 else: 138 else:

eric ide

mercurial