4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter the data for a tagging operation. |
7 Module implementing a dialog to enter the data for a tagging operation. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSlot |
12 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 |
14 |
13 from .Ui_HgTagDialog import Ui_HgTagDialog |
15 from .Ui_HgTagDialog import Ui_HgTagDialog |
27 Constructor |
29 Constructor |
28 |
30 |
29 @param taglist list of previously entered tags (list of strings) |
31 @param taglist list of previously entered tags (list of strings) |
30 @param parent parent widget (QWidget) |
32 @param parent parent widget (QWidget) |
31 """ |
33 """ |
32 super().__init__(parent) |
34 super(HgTagDialog, self).__init__(parent) |
33 self.setupUi(self) |
35 self.setupUi(self) |
34 |
36 |
35 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
37 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
36 self.okButton.setEnabled(False) |
38 self.okButton.setEnabled(False) |
37 |
39 |