diff options
author | brenda-br | 2023-01-07 05:44:49 +0530 |
---|---|---|
committer | brenda-br | 2023-01-07 05:44:49 +0530 |
commit | 4aea2c78d080aba7f686a6385f06459c76e63317 (patch) | |
tree | 7e1b4098f0cbe92542183561882eb8edb9e891b0 /src/main/python/utils/canvas.py | |
parent | 1fd0ccc7da922a2e0806292daf688a60d5757865 (diff) | |
download | Chemical-PFD-4aea2c78d080aba7f686a6385f06459c76e63317.tar.gz Chemical-PFD-4aea2c78d080aba7f686a6385f06459c76e63317.tar.bz2 Chemical-PFD-4aea2c78d080aba7f686a6385f06459c76e63317.zip |
Delete Function Added
Diffstat (limited to 'src/main/python/utils/canvas.py')
-rw-r--r-- | src/main/python/utils/canvas.py | 1 |
1 files changed, 1 insertions, 0 deletions
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]) |