9:1b11bf54b3b2 | 10:ef5694c0bf3a |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a dialog to enter the parameters for the if tag. | 7 Module implementing a dialog to enter the parameters for the if tag. |
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_IfTagInputDialog import Ui_IfTagInputDialog | 15 from .Ui_IfTagInputDialog import Ui_IfTagInputDialog |
30 | 32 |
31 @pyqtSlot(str) | 33 @pyqtSlot(str) |
32 def on_ifEdit_textChanged(self, txt): | 34 def on_ifEdit_textChanged(self, txt): |
33 """ | 35 """ |
34 Private slot to handle changes of the 'if' expression. | 36 Private slot to handle changes of the 'if' expression. |
37 | |
38 @param txt text of the line edit (string) | |
35 """ | 39 """ |
36 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(bool(txt)) | 40 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(bool(txt)) |
37 | 41 |
38 def getTag(self): | 42 def getTag(self): |
39 """ | 43 """ |