diff options
author | Blaine | 2020-06-10 15:56:46 +0530 |
---|---|---|
committer | Blaine | 2020-06-10 15:56:46 +0530 |
commit | 221128201eccbfcf12d367731702e52e78833bf1 (patch) | |
tree | 9a69897cc5c22ec09dc564569048bce7e46094f3 /src/main/python/shapes | |
parent | c1f3e9bd00fe1037fa71747ec4fcc7129283f8c2 (diff) | |
download | Chemical-PFD-221128201eccbfcf12d367731702e52e78833bf1.tar.gz Chemical-PFD-221128201eccbfcf12d367731702e52e78833bf1.tar.bz2 Chemical-PFD-221128201eccbfcf12d367731702e52e78833bf1.zip |
implement recent svg items
Diffstat (limited to 'src/main/python/shapes')
-rw-r--r-- | src/main/python/shapes/shapes.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py index 5f673cf..b825653 100644 --- a/src/main/python/shapes/shapes.py +++ b/src/main/python/shapes/shapes.py @@ -326,16 +326,13 @@ class NodeItem(QGraphicsSvgItem): Extends PyQt5's QGraphicsSvgItem to create the basic structure of shapes with given unit operation type """ # set a common renderer for all svg - renderer = QSvgRenderer(fileImporter(f'svg/ellipse.svg')) + # renderer = QSvgRenderer(fileImporter(f'svg/ellipse.svg')) def __init__(self, unitOperationType=None, parent=None): QGraphicsSvgItem.__init__(self, parent) self.m_type = str(unitOperationType) self.id = None - # self.m_renderer = QSvgRenderer("svg/" + unitOperationType + ".svg") - # self.m_renderer = QSvgRenderer(fileImporter(f'svg/{unitOperationType}.svg')) - self.m_renderer = QSvgRenderer(fileImporter(f'svg/ellipse.svg')) - # self.m_renderer = QSvgRenderer(resourceManager.get_resource(f'toolbar/{unitOperationType}.svg')) + self.m_renderer = QSvgRenderer(fileImporter(f'{unitOperationType}.svg')) self.setSharedRenderer(self.m_renderer) # set initial size of item self.width = 100 |