summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)