summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaine2020-04-21 17:10:29 +0530
committerBlaine2020-04-21 17:10:29 +0530
commit20a3d0c0d2a2918ed7e424961edd08c5636f8162 (patch)
tree8967fcba2d23f5051ad53ea8ea030b6b12563a40 /src
parentf661c76ccfa3f72f1f20055bb670f41e59080179 (diff)
downloadChemical-PFD-20a3d0c0d2a2918ed7e424961edd08c5636f8162.tar.gz
Chemical-PFD-20a3d0c0d2a2918ed7e424961edd08c5636f8162.tar.bz2
Chemical-PFD-20a3d0c0d2a2918ed7e424961edd08c5636f8162.zip
defaults for canvassize and ppi
Diffstat (limited to 'src')
-rw-r--r--src/main/python/utils/canvas.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py
index ad72544..258d901 100644
--- a/src/main/python/utils/canvas.py
+++ b/src/main/python/utils/canvas.py
@@ -3,11 +3,11 @@ from PyQt5.QtGui import QBrush
from PyQt5.QtWidgets import QWidget, QGraphicsScene, QGraphicsView, QHBoxLayout
from .sizes import paperSizes
class canvas(QWidget):
- def __init__(self, parent=None):
+ def __init__(self, parent=None, size= "A0", ppi= 72):
super(canvas, self).__init__(parent)
- self._ppi = 72
- self._canvasSize = "A0"
+ self._ppi = ppi
+ self._canvasSize = size
self.resize(1280, 720)