diff options
author | Blaine | 2020-04-22 16:42:25 +0530 |
---|---|---|
committer | Blaine | 2020-04-22 16:42:25 +0530 |
commit | 1d2b1cec812101d941907c1a2976a74439e67afa (patch) | |
tree | a6bfda3d76973b5d598d6b3f197d12c67f460029 /src | |
parent | 29d9ce50dd43a855453a16008cf8bcf2a17c3ec8 (diff) | |
download | Chemical-PFD-1d2b1cec812101d941907c1a2976a74439e67afa.tar.gz Chemical-PFD-1d2b1cec812101d941907c1a2976a74439e67afa.tar.bz2 Chemical-PFD-1d2b1cec812101d941907c1a2976a74439e67afa.zip |
Fixed Broken Imports
Diffstat (limited to 'src')
-rw-r--r-- | src/main/python/main.py | 2 | ||||
-rw-r--r-- | src/main/python/utils/canvas.py | 2 | ||||
-rw-r--r-- | src/main/python/utils/sizes.py | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/main/python/main.py b/src/main/python/main.py index 7f7c44a..79fb2c6 100644 --- a/src/main/python/main.py +++ b/src/main/python/main.py @@ -16,7 +16,7 @@ from utils.sizes import ppiList, sheetDimensionList class appWindow(QMainWindow): def __init__(self, parent=None): super(appWindow, self).__init__(parent) - self.resize(1280, 720) + # self.resize(1280, 720) self._defaultPPI = 72 self._defaultCanvasSize = "A0" diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index 6f0fb23..49c0bdb 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -2,7 +2,7 @@ from PyQt5.QtCore import Qt from PyQt5.QtGui import QBrush from PyQt5.QtWidgets import QGraphicsScene, QGraphicsView, QHBoxLayout, QWidget -import graphics +from . import graphics from .sizes import paperSizes, ppiList, sheetDimensionList diff --git a/src/main/python/utils/sizes.py b/src/main/python/utils/sizes.py index f1a56b3..4d0686b 100644 --- a/src/main/python/utils/sizes.py +++ b/src/main/python/utils/sizes.py @@ -31,5 +31,6 @@ paperSizes = { } } -sheetDimensionList = paperSizes.keys() +sheetDimensionList = [f'A{i}' for i in range(5)] + ppiList = ["72", "96", "150", "300"]
\ No newline at end of file |