From 4aea2c78d080aba7f686a6385f06459c76e63317 Mon Sep 17 00:00:00 2001 From: brenda-br Date: Sat, 7 Jan 2023 05:44:49 +0530 Subject: Delete Function Added --- src/main/python/utils/canvas.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index 68b0902..a15813f 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -34,6 +34,7 @@ class canvas(CustomView): self.painter.labelAdded.connect(self.updateStreamTable) self.painter.setBackgroundBrush(QBrush(Qt.white)) #set white background self.setScene(self.painter) + self.addAction(self.painter.deleteAction) #set initial paper size for the scene self.painter.setSceneRect(0, 0, *paperSizes[self._canvasSize][self._ppi]) -- cgit