Templates/TemplateSingleVariableDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3145
a9de05d4a22f
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog for entering a single template variable. 7 Module implementing a dialog for entering a single template variable.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtGui import QDialog 12 from PyQt4.QtGui import QDialog
11 13
12 from .Ui_TemplateSingleVariableDialog import Ui_TemplateSingleVariableDialog 14 from .Ui_TemplateSingleVariableDialog import Ui_TemplateSingleVariableDialog
13 15
21 Constructor 23 Constructor
22 24
23 @param variable template variable name (string) 25 @param variable template variable name (string)
24 @param parent parent widget of this dialog (QWidget) 26 @param parent parent widget of this dialog (QWidget)
25 """ 27 """
26 super().__init__(parent) 28 super(TemplateSingleVariableDialog, self).__init__(parent)
27 self.setupUi(self) 29 self.setupUi(self)
28 30
29 self.variableLabel.setText(variable) 31 self.variableLabel.setText(variable)
30 32
31 def getVariable(self): 33 def getVariable(self):

eric ide

mercurial