summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaine2020-05-02 15:46:10 +0530
committerBlaine2020-05-02 15:46:10 +0530
commit61725f4a541ad956295c3fa425d26bf9bd0aa008 (patch)
treedc9ebff3e5c5313933a4d5e828ab3b757d68a155 /src
parent06816626c9ef691303012008dfae09b0210f78a1 (diff)
downloadChemical-PFD-61725f4a541ad956295c3fa425d26bf9bd0aa008.tar.gz
Chemical-PFD-61725f4a541ad956295c3fa425d26bf9bd0aa008.tar.bz2
Chemical-PFD-61725f4a541ad956295c3fa425d26bf9bd0aa008.zip
typos fixed
Diffstat (limited to 'src')
-rw-r--r--src/main/python/main.py2
-rw-r--r--src/main/python/utils/canvas.py5
-rw-r--r--src/main/python/utils/fileWindow.py2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/main/python/main.py b/src/main/python/main.py
index 83cbffd..a61d230 100644
--- a/src/main/python/main.py
+++ b/src/main/python/main.py
@@ -47,7 +47,7 @@ class appWindow(QMainWindow):
mainLayout.addWidget(self.toolbar)
mainLayout.addWidget(self.mdi)
- #set flag so that window doesnt look weird
+ #set flags so that window doesnt look weird
self.mdi.setOption(QMdiArea.DontMaximizeSubWindowOnActivation, True)
self.mdi.setTabsClosable(True)
self.mdi.setTabsMovable(True)
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])
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index c850b27..22bbc68 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -45,7 +45,7 @@ class fileWindow(QMdiSubWindow):
self.setContextMenuPolicy(Qt.CustomContextMenu)
self.customContextMenuRequested.connect(self.contextMenu)
- self.setAttribute(Qt.WA_DeleteOnClose, True)
+ # self.setAttribute(Qt.WA_DeleteOnClose, True)
self.setWindowFlag(Qt.CustomizeWindowHint, True)
self.setWindowFlag(Qt.WindowMinimizeButtonHint, False)
self.setWindowFlag(Qt.WindowMaximizeButtonHint, False)