src/eric7/Templates/TemplateMultipleVariablesDialog.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 9653
e67609152c5e
child 10431
64157aeb0312
equal deleted inserted replaced
10372:1444b4bee64b 10373:093dcebe5ecb
129 Public method to get the values for all variables. 129 Public method to get the values for all variables.
130 130
131 @return dictionary with the variable as a key and its value (string) 131 @return dictionary with the variable as a key and its value (string)
132 """ 132 """
133 values = {} 133 values = {}
134 for var, textEdit in list(self.variablesEntries.items()): 134 for var, textEdit in self.variablesEntries.items():
135 try: 135 try:
136 values[var] = textEdit.text() 136 values[var] = textEdit.text()
137 except AttributeError: 137 except AttributeError:
138 values[var] = textEdit.toPlainText() 138 values[var] = textEdit.toPlainText()
139 return values 139 return values

eric ide

mercurial