Templates/TemplateMultipleVariablesDialog.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
108 Public method to get the values for all variables. 108 Public method to get the values for all variables.
109 109
110 @return dictionary with the variable as a key and its value (string) 110 @return dictionary with the variable as a key and its value (string)
111 """ 111 """
112 values = {} 112 values = {}
113 for var, textEdit in self.variablesEntries.items(): 113 for var, textEdit in list(self.variablesEntries.items()):
114 try: 114 try:
115 values[var] = textEdit.text() 115 values[var] = textEdit.text()
116 except AttributeError: 116 except AttributeError:
117 values[var] = textEdit.toPlainText() 117 values[var] = textEdit.toPlainText()
118 return values 118 return values

eric ide

mercurial