summaryrefslogtreecommitdiff
path: root/src/main/python/utils/canvas.py
diff options
context:
space:
mode:
authorBlaine2020-05-05 13:45:48 +0530
committerBlaine2020-05-05 13:45:48 +0530
commit7fa23828f14322e7c34fc32b7e9c6ac5d688200e (patch)
tree137dee0adc66f908bb6532f20c3ea0c7cfcde7b2 /src/main/python/utils/canvas.py
parentc169f11c3f7d887cc956d291e224046e1b75fbe4 (diff)
downloadChemical-PFD-7fa23828f14322e7c34fc32b7e9c6ac5d688200e.tar.gz
Chemical-PFD-7fa23828f14322e7c34fc32b7e9c6ac5d688200e.tar.bz2
Chemical-PFD-7fa23828f14322e7c34fc32b7e9c6ac5d688200e.zip
some keyboard shortcuts
Diffstat (limited to 'src/main/python/utils/canvas.py')
-rw-r--r--src/main/python/utils/canvas.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py
index bf035f1..e2e6ab8 100644
--- a/src/main/python/utils/canvas.py
+++ b/src/main/python/utils/canvas.py
@@ -95,6 +95,11 @@ class canvas(QWidget):
def dimensions(self):
#returns the dimension of the current scene
return self.painter.sceneRect().width(), self.painter.sceneRect().height()
+ @property
+ def items(self):
+ # generator to filter out certain items
+ for i in self.painter.items():
+ yield i
@property
def canvasSize(self):