개정판 127ba745
fix line no remove
Change-Id: If78277ab16a8bd542771ae176fea2e5d886d0571
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
3328 | 3328 |
item.scene().removeItem(item) |
3329 | 3329 |
del item |
3330 | 3330 |
else: |
3331 |
if hasattr(item, 'lineNoFromToIndicator') and item.lineNoFromToIndicator: |
|
3332 |
item.scene().removeItem(item.lineNoFromToIndicator[0]) |
|
3333 |
if len(item.lineNoFromToIndicator) > 1: |
|
3334 |
item.scene().removeItem(item.lineNoFromToIndicator[1]) |
|
3335 |
|
|
3331 | 3336 |
remove_scene = item.scene() |
3332 | 3337 |
self.itemTreeWidget.itemRemoved(item) |
3333 | 3338 |
|
... | ... | |
3403 | 3408 |
# item._labels = [] |
3404 | 3409 |
|
3405 | 3410 |
item.hoverLeaveEvent(None) |
3406 |
if hasattr(item, 'lineNoFromToIndicator') and item.lineNoFromToIndicator: |
|
3407 |
item.scene().removeItem(item.lineNoFromToIndicator[0]) |
|
3408 |
item.scene().removeItem(item.lineNoFromToIndicator[1]) |
|
3409 | 3411 |
item.scene().removeItem(item) |
3410 | 3412 |
except Exception as ex: |
3411 | 3413 |
message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, |
내보내기 Unified diff