summaryrefslogtreecommitdiff
path: root/src/main/python/utils/canvas.py
diff options
context:
space:
mode:
authorpravindalve2023-01-19 10:28:27 +0530
committerGitHub2023-01-19 10:28:27 +0530
commite6d80eb6271b80c9177e48ba1b3986f5aade2752 (patch)
tree7e1b4098f0cbe92542183561882eb8edb9e891b0 /src/main/python/utils/canvas.py
parent1fd0ccc7da922a2e0806292daf688a60d5757865 (diff)
parent4aea2c78d080aba7f686a6385f06459c76e63317 (diff)
downloadChemical-PFD-e6d80eb6271b80c9177e48ba1b3986f5aade2752.tar.gz
Chemical-PFD-e6d80eb6271b80c9177e48ba1b3986f5aade2752.tar.bz2
Chemical-PFD-e6d80eb6271b80c9177e48ba1b3986f5aade2752.zip
Merge pull request #25 from brenda-br/Delete-Function-Added
Delete Function Added
Diffstat (limited to 'src/main/python/utils/canvas.py')
-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])