hytos / DTI_PID / DTI_PID / Shapes / EngineeringNozzleNameItem.py @ 0f3db2a0
이력 | 보기 | 이력해설 | 다운로드 (1.28 KB)
1 |
# coding: utf-8
|
---|---|
2 |
|
3 |
import os.path |
4 |
import sys |
5 |
import copy |
6 |
try:
|
7 |
from PyQt5.QtCore import Qt, QPointF, QRectF, pyqtSignal, QT_VERSION_STR, QRect |
8 |
from PyQt5.QtGui import QImage, QPixmap, QPainterPath, QBrush, QPen, QTransform, QFont |
9 |
from PyQt5.QtWidgets import QGraphicsView, QGraphicsScene, QFileDialog, QGraphicsItem, QAbstractGraphicsShapeItem, QGraphicsTextItem |
10 |
except ImportError: |
11 |
try:
|
12 |
from PyQt4.QtCore import Qt, QRectF, pyqtSignal, QT_VERSION_STR, QRect |
13 |
from PyQt4.QtGui import QGraphicsView, QGraphicsScene, QImage, QPixmap, QPainterPath, QFileDialog, QFont |
14 |
except ImportError: |
15 |
raise ImportError("ImageViewerQt: Requires PyQt5 or PyQt4.") |
16 |
|
17 |
from AppDocData import AppDocData |
18 |
from QEngineeringTextItem import QEngineeringTextItem |
19 |
|
20 |
class QEngineeringNozzleNameItem(QEngineeringTextItem): |
21 |
|
22 |
'''
|
23 |
'''
|
24 |
def __init__(self, parent=None): |
25 |
QEngineeringTextItem.__init__(self, parent)
|
26 |
|
27 |
self._runs = []
|
28 |
|
29 |
appDocData = AppDocData.instance() |
30 |
attributes = appDocData.getSymbolAttribute('Nozzle')
|
31 |
self._attrs = [[attr, None] for attr in attributes] |
32 |
|
33 |
'''
|
34 |
@brief getter of attributes
|
35 |
@author humkyung
|
36 |
@date 2018.07.29
|
37 |
'''
|
38 |
@property
|
39 |
def attrs(self): |
40 |
return self._attrs |