From 4c2133fdff296922fe6fc1a03462d8258564bd82 Mon Sep 17 00:00:00 2001 From: sumit Date: Wed, 3 Jun 2020 16:25:49 +0530 Subject: added id for svg item --- src/main/python/shapes/shapes.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/python/shapes/shapes.py') diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py index 3237e72..94b9eb1 100644 --- a/src/main/python/shapes/shapes.py +++ b/src/main/python/shapes/shapes.py @@ -289,6 +289,7 @@ class NodeItem(QGraphicsSvgItem): def __init__(self, unitOperationType, parent=None): QGraphicsSvgItem.__init__(self, parent) self.m_type = 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')) -- cgit