개정판 0e300012
dev issue #581: fix bug
DTI_PID/DTI_PID/QResultPropertyTableWidget.py | ||
---|---|---|
271 | 271 |
self.setItem(0, 0, lineNoTitleItem) |
272 | 272 |
self.setItem(0, 1, QTableWidgetItem(lineNoItem.text())) |
273 | 273 |
|
274 |
attrs = lineNoItem.getLineNoAttributes() |
|
275 |
if attrs is not None: |
|
276 |
attrItems = list(attrs.items()) |
|
274 |
attrItems = lineNoItem.getLineNoAttributes() |
|
275 |
if attrItems is not None: |
|
277 | 276 |
for index in range(len(attrItems)): |
278 | 277 |
key = attrItems[index][0] |
279 | 278 |
value = attrItems[index][1] |
DTI_PID/DTI_PID/Shapes/QEngineeringTextItem.py | ||
---|---|---|
236 | 236 |
kyouho 2018.07.06 add using TextItemFactory.isLineNo method |
237 | 237 |
''' |
238 | 238 |
def getLineNoAttributes(self): |
239 |
res = {}
|
|
239 |
res = []
|
|
240 | 240 |
|
241 | 241 |
try: |
242 | 242 |
docData = AppDocData.instance() |
... | ... | |
257 | 257 |
for i in range(len(configs)): |
258 | 258 |
if configs[i] == delimiter: |
259 | 259 |
continue |
260 |
res[configs[i]] = result[i]
|
|
260 |
res.append((configs[i], result[i]))
|
|
261 | 261 |
|
262 | 262 |
except Exception as ex: |
263 | 263 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
내보내기 Unified diff