개정판 f9f40aff
issue #000: fix typo
Change-Id: Ib8870951c1d910fd9da7ef63773c1151708c64cb
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
678 | 678 |
cmd = SelectAttributeCommand.SelectAttributeCommand(items[0], attr, self.mainWindow.graphicsView) |
679 | 679 |
cmd.onSuccess.connect(self.onSuccessSelectAttribute) |
680 | 680 |
self.mainWindow.graphicsView.command = cmd |
681 |
elif keyCell.text() == 'OWNER' and (type(items[0]) is QEngineeringLineItem) or (issubclass(type(items[0]), SymbolSvgItem)):
|
|
681 |
elif keyCell.text() == 'OWNER' and ((type(items[0]) is QEngineeringLineItem) or (issubclass(type(items[0]), SymbolSvgItem))):
|
|
682 | 682 |
from SymbolAttr import SymbolAttr |
683 | 683 |
attr = SymbolAttr() |
684 | 684 |
attr.AttributeType = "OWNER" |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
715 | 715 |
for attr in symbolAttrs: |
716 | 716 |
if attr.AttributeType == 'Size Text Item' or attr.AttributeType == 'Text Item' or attr.AttributeType == 'Valve Oper Code': |
717 | 717 |
at = int(attr.AttrAt) |
718 |
items = [text for text in _texts if QEngineeringAbsractItem.assoc_type(text) == attr.AttributeType] |
|
718 |
items = [text for text in _texts if QEngineeringAbstractItem.assoc_type(text) == attr.AttributeType]
|
|
719 | 719 |
if len(items) > at: |
720 | 720 |
item = items[at] |
721 | 721 |
_attrs[attr] = eval(attr.Expression) if attr.Expression else '' |
내보내기 Unified diff