diff options
author | Blaine | 2020-05-05 13:45:48 +0530 |
---|---|---|
committer | Blaine | 2020-05-05 13:45:48 +0530 |
commit | 7fa23828f14322e7c34fc32b7e9c6ac5d688200e (patch) | |
tree | 137dee0adc66f908bb6532f20c3ea0c7cfcde7b2 /src/main/python/utils/canvas.py | |
parent | c169f11c3f7d887cc956d291e224046e1b75fbe4 (diff) | |
download | Chemical-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.py | 5 |
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): |