summaryrefslogtreecommitdiff
path: root/src/main/python/utils/canvas.py
diff options
context:
space:
mode:
authorBlaine2020-05-02 15:46:10 +0530
committerBlaine2020-05-02 15:46:10 +0530
commit61725f4a541ad956295c3fa425d26bf9bd0aa008 (patch)
treedc9ebff3e5c5313933a4d5e828ab3b757d68a155 /src/main/python/utils/canvas.py
parent06816626c9ef691303012008dfae09b0210f78a1 (diff)
downloadChemical-PFD-61725f4a541ad956295c3fa425d26bf9bd0aa008.tar.gz
Chemical-PFD-61725f4a541ad956295c3fa425d26bf9bd0aa008.tar.bz2
Chemical-PFD-61725f4a541ad956295c3fa425d26bf9bd0aa008.zip
typos fixed
Diffstat (limited to 'src/main/python/utils/canvas.py')
-rw-r--r--src/main/python/utils/canvas.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py
index 8f5f7b4..bf035f1 100644
--- a/src/main/python/utils/canvas.py
+++ b/src/main/python/utils/canvas.py
@@ -24,7 +24,9 @@ class canvas(QWidget):
self._canvasSize = size
# self.setFixedSize(parent.size())
#Create area for the graphic items to be placed, this is just here right now for the future
- # when we will draw items on this, this might be changed if QGraphicScene is subclassed.
+ # when we will draw items on this, this might be changed if QGraphicScene is subclassed.
+
+ #set layout and background color
self.painter = QGraphicsScene()
self.painter.setBackgroundBrush(QBrush(Qt.white)) #set white background
@@ -34,7 +36,6 @@ class canvas(QWidget):
self.layout.addWidget(self.view, alignment=Qt.AlignCenter)
self.layout.setContentsMargins(0, 0, 0, 0)
self.setLayout(self.layout)
- #set layout and background color
#set initial paper size for the scene
self.painter.setSceneRect(0, 0, *paperSizes[self.canvasSize][self.ppi])