summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-01-07 05:44:49 +0530
committerbrenda-br2023-01-07 05:44:49 +0530
commit4aea2c78d080aba7f686a6385f06459c76e63317 (patch)
tree7e1b4098f0cbe92542183561882eb8edb9e891b0
parent1fd0ccc7da922a2e0806292daf688a60d5757865 (diff)
downloadChemical-PFD-4aea2c78d080aba7f686a6385f06459c76e63317.tar.gz
Chemical-PFD-4aea2c78d080aba7f686a6385f06459c76e63317.tar.bz2
Chemical-PFD-4aea2c78d080aba7f686a6385f06459c76e63317.zip
Delete Function Added
-rw-r--r--src/main/python/utils/canvas.py1
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])