From 7fa23828f14322e7c34fc32b7e9c6ac5d688200e Mon Sep 17 00:00:00 2001 From: Blaine Date: Tue, 5 May 2020 13:45:48 +0530 Subject: some keyboard shortcuts --- src/main/python/utils/canvas.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/python/utils/canvas.py') 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): -- cgit