- 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:
@@ -9,7 +9,8 @@ from PyQt6 import QtWidgets, QtCore, QtGui
|
||||
|
||||
from camlib import grace
|
||||
from appTool import AppTool
|
||||
from appGUI.GUIElements import FCDoubleSpinner, RadioSet, FCEntry, FCComboBox, FCLabel, FCCheckBox, VerticalScrollArea
|
||||
from appGUI.GUIElements import FCDoubleSpinner, RadioSet, FCEntry, FCComboBox, FCLabel, FCCheckBox, \
|
||||
VerticalScrollArea, FCGridLayout
|
||||
from appCommon.Common import LoudDict
|
||||
|
||||
import shapely.geometry.base as base
|
||||
@@ -1287,7 +1288,7 @@ class ThievingUI:
|
||||
self.layout.addWidget(FCLabel(""))
|
||||
|
||||
# ## Grid Layout
|
||||
i_grid_lay = QtWidgets.QGridLayout()
|
||||
i_grid_lay = FCGridLayout(v_spacing=3)
|
||||
self.layout.addLayout(i_grid_lay)
|
||||
i_grid_lay.setColumnStretch(0, 0)
|
||||
i_grid_lay.setColumnStretch(1, 1)
|
||||
@@ -1312,7 +1313,7 @@ class ThievingUI:
|
||||
i_grid_lay.addWidget(separator_line, 2, 0, 1, 2)
|
||||
|
||||
# ## Grid Layout
|
||||
grid_lay = QtWidgets.QGridLayout()
|
||||
grid_lay = FCGridLayout(v_spacing=3)
|
||||
self.layout.addLayout(grid_lay)
|
||||
grid_lay.setColumnStretch(0, 0)
|
||||
grid_lay.setColumnStretch(1, 1)
|
||||
@@ -1463,7 +1464,7 @@ class ThievingUI:
|
||||
self.dots_frame = QtWidgets.QFrame()
|
||||
self.dots_frame.setContentsMargins(0, 0, 0, 0)
|
||||
self.layout.addWidget(self.dots_frame)
|
||||
dots_grid = QtWidgets.QGridLayout()
|
||||
dots_grid = FCGridLayout(v_spacing=3)
|
||||
dots_grid.setColumnStretch(0, 0)
|
||||
dots_grid.setColumnStretch(1, 1)
|
||||
dots_grid.setContentsMargins(0, 0, 0, 0)
|
||||
@@ -1503,7 +1504,7 @@ class ThievingUI:
|
||||
self.squares_frame = QtWidgets.QFrame()
|
||||
self.squares_frame.setContentsMargins(0, 0, 0, 0)
|
||||
self.layout.addWidget(self.squares_frame)
|
||||
squares_grid = QtWidgets.QGridLayout()
|
||||
squares_grid = FCGridLayout(v_spacing=3)
|
||||
squares_grid.setColumnStretch(0, 0)
|
||||
squares_grid.setColumnStretch(1, 1)
|
||||
squares_grid.setContentsMargins(0, 0, 0, 0)
|
||||
@@ -1543,7 +1544,7 @@ class ThievingUI:
|
||||
self.lines_frame = QtWidgets.QFrame()
|
||||
self.lines_frame.setContentsMargins(0, 0, 0, 0)
|
||||
self.layout.addWidget(self.lines_frame)
|
||||
lines_grid = QtWidgets.QGridLayout()
|
||||
lines_grid = FCGridLayout(v_spacing=3)
|
||||
lines_grid.setColumnStretch(0, 0)
|
||||
lines_grid.setColumnStretch(1, 1)
|
||||
lines_grid.setContentsMargins(0, 0, 0, 0)
|
||||
@@ -1595,7 +1596,7 @@ class ThievingUI:
|
||||
self.layout.addWidget(self.fill_button)
|
||||
|
||||
# ## Grid Layout
|
||||
grid_lay_1 = QtWidgets.QGridLayout()
|
||||
grid_lay_1 = FCGridLayout(v_spacing=3)
|
||||
self.layout.addLayout(grid_lay_1)
|
||||
grid_lay_1.setColumnStretch(0, 0)
|
||||
grid_lay_1.setColumnStretch(1, 1)
|
||||
|
||||
Reference in New Issue
Block a user