개정판 596d7b7b
dev issue #000: edit SIZETEXT
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1809 | 1809 |
self.progress.setValue(self.progress.value() + 1) |
1810 | 1810 |
|
1811 | 1811 |
QApplication.processEvents() |
1812 |
|
|
1813 |
# SIZE TEXT |
|
1814 |
for text in root.find('SIZETEXT').iter('ATTRIBUTE'): |
|
1815 |
item = QEngineeringTextItem.fromXml(text) |
|
1816 |
if item is not None: |
|
1817 |
uid = text.find('UID') |
|
1818 |
attributeValue = text.find('ATTRIBUTEVALUE') |
|
1819 |
name = text.find('NAME').text |
|
1820 |
item.transfer.onRemoved.connect(self.itemRemoved) |
|
1821 |
self.addTextItemToScene(item) |
|
1822 |
|
|
1823 |
self.progress.setValue(self.progress.value() + 1) |
|
1824 |
|
|
1825 |
QApplication.processEvents() |
|
1826 | 1812 |
|
1827 | 1813 |
for line in root.find('LINEINFOS').iter('LINE'): |
1828 | 1814 |
item = QEngineeringLineItem.fromXml(line) |
내보내기 Unified diff