Debugger/VariablesViewer.py

changeset 447
d5a0302040e9
parent 406
eacf81fad150
child 458
1695e7a2db54
equal deleted inserted replaced
446:69aac6eeba9b 447:d5a0302040e9
178 right justified and zero filled to 6 decimal places. Then 178 right justified and zero filled to 6 decimal places. Then
179 element 2 will have a key of '000002' and appear before 179 element 2 will have a key of '000002' and appear before
180 element 10 with a key of '000010' 180 element 10 with a key of '000010'
181 """ 181 """
182 keyStr = self.text(0) 182 keyStr = self.text(0)
183 self.arrayElementKey = "{0:.6d}".format(int(keyStr)) 183 self.arrayElementKey = "{0:6d}".format(int(keyStr))
184 184
185 def key(self, column): 185 def key(self, column):
186 """ 186 """
187 Public method generating the key for this item. 187 Public method generating the key for this item.
188 188
215 right justified and zero filled to 6 decimal places. Then 215 right justified and zero filled to 6 decimal places. Then
216 element 2 will have a key of '000002' and appear before 216 element 2 will have a key of '000002' and appear before
217 element 10 with a key of '000010' 217 element 10 with a key of '000010'
218 """ 218 """
219 keyStr = self.text(0)[:-2] # strip off [], () or {} 219 keyStr = self.text(0)[:-2] # strip off [], () or {}
220 self.arrayElementKey = "{0:.6d}".format(int(keyStr)) 220 self.arrayElementKey = "{0:6d}".format(int(keyStr))
221 221
222 def key(self, column): 222 def key(self, column):
223 """ 223 """
224 Public method generating the key for this item. 224 Public method generating the key for this item.
225 225

eric ide

mercurial