diff options
author | Blaine | 2020-04-22 16:15:06 +0530 |
---|---|---|
committer | Blaine | 2020-04-22 16:15:06 +0530 |
commit | 29d9ce50dd43a855453a16008cf8bcf2a17c3ec8 (patch) | |
tree | 67c3d1ad51788eaadc63749225e1998da23378cf /src | |
parent | a8a5b967e329a2ef5688089e8cbec2e37835fc08 (diff) | |
download | Chemical-PFD-29d9ce50dd43a855453a16008cf8bcf2a17c3ec8.tar.gz Chemical-PFD-29d9ce50dd43a855453a16008cf8bcf2a17c3ec8.tar.bz2 Chemical-PFD-29d9ce50dd43a855453a16008cf8bcf2a17c3ec8.zip |
save feature for canvas items
Diffstat (limited to 'src')
-rw-r--r-- | src/main/python/utils/canvas.py | 3 |
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) |