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 |