- created a new custom layout based on the Grid Layout where I can set the horizontal and vertical spacings between grid items and used it throughout the app

This commit is contained in:
Marius Stanciu
2021-08-07 11:46:45 +03:00
committed by Marius
parent 3c06280d3d
commit 461aa763ad
88 changed files with 325 additions and 281 deletions

View File

@@ -10,7 +10,7 @@ from PyQt6 import QtWidgets, QtCore, QtGui
from appTool import AppTool
from appGUI.GUIElements import FCCheckBox, FCDoubleSpinner, RadioSet, FCTable, FCButton, \
FCComboBox, OptionalInputSection, FCSpinner, NumericalEvalEntry, OptionalHideInputSection, FCLabel, \
NumericalEvalTupleEntry, FCComboBox2, VerticalScrollArea
NumericalEvalTupleEntry, FCComboBox2, VerticalScrollArea, FCGridLayout
from appParsers.ParseExcellon import Excellon
from copy import deepcopy
@@ -2292,7 +2292,7 @@ class DrillingUI:
self.title_box.addWidget(self.level)
# Grid Layout
grid0 = QtWidgets.QGridLayout()
grid0 = FCGridLayout(v_spacing=3)
grid0.setColumnStretch(0, 0)
grid0.setColumnStretch(1, 1)
self.tools_box.addLayout(grid0)
@@ -2402,7 +2402,7 @@ class DrillingUI:
# ################# GRID LAYOUT 3 ###############################
# #################################################################
self.grid1 = QtWidgets.QGridLayout()
self.grid1 = FCGridLayout(v_spacing=3)
self.grid1.setColumnStretch(0, 0)
self.grid1.setColumnStretch(1, 1)
self.exc_tools_box.addLayout(self.grid1)
@@ -2611,7 +2611,7 @@ class DrillingUI:
# #################################################################
# ################# COMMON PARAMETERS #############################
self.grid3 = QtWidgets.QGridLayout()
self.grid3 = FCGridLayout(v_spacing=3)
self.grid3.setColumnStretch(0, 0)
self.grid3.setColumnStretch(1, 1)
self.exc_tools_box.addLayout(self.grid3)
@@ -2817,7 +2817,7 @@ class DrillingUI:
self.exclusion_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
grid_a1 = QtWidgets.QGridLayout()
grid_a1 = FCGridLayout(v_spacing=3)
grid_a1.setColumnStretch(0, 0)
grid_a1.setColumnStretch(1, 1)
self.exclusion_box.addLayout(grid_a1)
@@ -2888,7 +2888,7 @@ class DrillingUI:
# #################################################################
# ################# GRID LAYOUT 6 ###############################
# #################################################################
self.grid4 = QtWidgets.QGridLayout()
self.grid4 = FCGridLayout(v_spacing=3)
self.grid4.setColumnStretch(0, 0)
self.grid4.setColumnStretch(1, 1)
self.tools_box.addLayout(self.grid4)