diff options
author | pravindalve | 2020-06-11 11:48:16 +0530 |
---|---|---|
committer | GitHub | 2020-06-11 11:48:16 +0530 |
commit | 7c620f2b3724fdefa13402277df3a6b4a4e1d6c5 (patch) | |
tree | 1c0759bf16b556f14076f9e477befbca0f264e83 /src/main/python/utils | |
parent | ced055b07a31720d12a7efce1f7c5c0c388d03a5 (diff) | |
parent | ae82408243003531191ad28daa3dc22a2d394cb5 (diff) | |
download | Chemical-PFD-7c620f2b3724fdefa13402277df3a6b4a4e1d6c5.tar.gz Chemical-PFD-7c620f2b3724fdefa13402277df3a6b4a4e1d6c5.tar.bz2 Chemical-PFD-7c620f2b3724fdefa13402277df3a6b4a4e1d6c5.zip |
Merge pull request #15 from Blakeinstein/master
even more svgs and updated qss
Diffstat (limited to 'src/main/python/utils')
-rw-r--r-- | src/main/python/utils/canvas.py | 2 | ||||
-rw-r--r-- | src/main/python/utils/fileWindow.py | 2 | ||||
-rw-r--r-- | src/main/python/utils/layout.py | 2 | ||||
-rw-r--r-- | src/main/python/utils/toolbar.py | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index 66d38e8..c860bbb 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -16,7 +16,7 @@ class canvas(QWidget): for context menu and dialogs. """ - def __init__(self, parent=None, size= 'A4', ppi= '72' , parentMdiArea = None, parentFileWindow = None, landscape=False): + def __init__(self, parent=None, size= 'A0', ppi= '72' , parentMdiArea = None, parentFileWindow = None, landscape=True): super(canvas, self).__init__(parent) #Store values for the canvas dimensions for ease of access, these are here just to be diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py index ba0b6e9..a5ed535 100644 --- a/src/main/python/utils/fileWindow.py +++ b/src/main/python/utils/fileWindow.py @@ -20,7 +20,7 @@ class fileWindow(QMdiSubWindow): fileCloseEvent = pyqtSignal(int) tabChangeEvent = pyqtSignal() - def __init__(self, parent = None, title = 'New Project', size = 'A4', ppi = '72'): + def __init__(self, parent = None, title = 'New Project', size = 'A0', ppi = '72'): super(fileWindow, self).__init__(parent) self._sideViewTab = None self.index = None diff --git a/src/main/python/utils/layout.py b/src/main/python/utils/layout.py index 6781249..ac37358 100644 --- a/src/main/python/utils/layout.py +++ b/src/main/python/utils/layout.py @@ -2,7 +2,7 @@ from PyQt5.QtCore import Qt, QRect, QPoint, QSize from PyQt5.QtWidgets import QLayout, QSizePolicy class flowLayout(QLayout): - def __init__(self, parent=None, margin=0, spacing=-1): + def __init__(self, parent=None, margin=0, spacing=12): super(flowLayout, self).__init__(parent) if parent is not None: diff --git a/src/main/python/utils/toolbar.py b/src/main/python/utils/toolbar.py index beac867..220504b 100644 --- a/src/main/python/utils/toolbar.py +++ b/src/main/python/utils/toolbar.py @@ -81,7 +81,7 @@ class toolbar(QDockWidget): parent = self.parentWidget() #used to get parent dimensions self.layout.setDirection(QBoxLayout.TopToBottom) # here so that a horizontal toolbar can be implemented later # self.setFixedHeight(self.height()) #span available height - self.searchBox.setMinimumWidth(.15*parent.width()) + self.searchBox.setMinimumWidth(.18*parent.width()) width = self.width() scrollBar = self.diagArea.verticalScrollBar() height = self.diagAreaLayout.heightForWidth(width) @@ -90,7 +90,7 @@ class toolbar(QDockWidget): # the following line, sets the required height for the current width, so that blank space doesnt occur self.diagAreaWidget.setMinimumHeight(height) - self.setMinimumWidth(.18*parent.width()) #12% of parent width + self.setMinimumWidth(.2*parent.width()) #12% of parent width # self.setMinimumWidth(self.diagAreaLayout.minimumSize().width()) #12% of parent width self.diagAreaWidget.setLayout(self.diagAreaLayout) self.diagArea.setWidget(self.diagAreaWidget) @@ -161,7 +161,7 @@ class toolbarButton(QToolButton): def minimumSizeHint(self): #defines button size - return QSize(40, 40) + return QSize(55, 55) class sectionLabel(QLabel): |