diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Templates/TemplateSingleVariableDialog.py --- a/src/eric7/Templates/TemplateSingleVariableDialog.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Templates/TemplateSingleVariableDialog.py Wed Jul 13 14:55:47 2022 +0200 @@ -16,22 +16,23 @@ """ Class implementing a dialog for entering a single template variable. """ + def __init__(self, variable, parent=None): """ Constructor - + @param variable template variable name (string) @param parent parent widget of this dialog (QWidget) """ super().__init__(parent) self.setupUi(self) - + self.variableLabel.setText(variable) def getVariable(self): """ Public method to get the value for the variable. - + @return value for the template variable (string) """ return self.variableEdit.toPlainText()