summaryrefslogtreecommitdiff
path: root/src/main/python/utils/canvas.py
diff options
context:
space:
mode:
authorBlaine2020-04-22 16:15:06 +0530
committerBlaine2020-04-22 16:15:06 +0530
commit29d9ce50dd43a855453a16008cf8bcf2a17c3ec8 (patch)
tree67c3d1ad51788eaadc63749225e1998da23378cf /src/main/python/utils/canvas.py
parenta8a5b967e329a2ef5688089e8cbec2e37835fc08 (diff)
downloadChemical-PFD-29d9ce50dd43a855453a16008cf8bcf2a17c3ec8.tar.gz
Chemical-PFD-29d9ce50dd43a855453a16008cf8bcf2a17c3ec8.tar.bz2
Chemical-PFD-29d9ce50dd43a855453a16008cf8bcf2a17c3ec8.zip
save feature for canvas items
Diffstat (limited to 'src/main/python/utils/canvas.py')
-rw-r--r--src/main/python/utils/canvas.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py
index c101422..6f0fb23 100644
--- a/src/main/python/utils/canvas.py
+++ b/src/main/python/utils/canvas.py
@@ -73,4 +73,5 @@ class canvas(QWidget):
self.setObjectName(dict['ObjectName'])
for item in dict['items']:
graphic = getattr(graphics, dict['_classname_'])
- self.painter.addItem(item)
+ graphic.setstate(item)
+ self.painter.addItem(graphic)