4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog for entering character classes. |
7 Module implementing a dialog for entering character classes. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import QRegExp |
12 from PyQt4.QtCore import QRegExp |
11 from PyQt4.QtGui import QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QLineEdit, \ |
13 from PyQt4.QtGui import QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QLineEdit, \ |
12 QPushButton, QDialog, QScrollArea, QComboBox, QVBoxLayout, QRegExpValidator, QLabel |
14 QPushButton, QDialog, QScrollArea, QComboBox, QVBoxLayout, QRegExpValidator, QLabel |
13 |
15 |
27 Constructor |
29 Constructor |
28 |
30 |
29 @param mode mode of the dialog (one of RegExpMode, WildcardMode, W3CMode) |
31 @param mode mode of the dialog (one of RegExpMode, WildcardMode, W3CMode) |
30 @param parent parent widget (QWidget) |
32 @param parent parent widget (QWidget) |
31 """ |
33 """ |
32 super().__init__(parent) |
34 super(QRegExpWizardCharactersDialog, self).__init__(parent) |
33 self.setupUi(self) |
35 self.setupUi(self) |
34 |
36 |
35 self.__mode = mode |
37 self.__mode = mode |
36 |
38 |
37 if mode == QRegExpWizardCharactersDialog.WildcardMode: |
39 if mode == QRegExpWizardCharactersDialog.WildcardMode: |