- 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 QtCore, QtWidgets, QtGui
|
||||
|
||||
from appTool import AppTool
|
||||
from appGUI.GUIElements import RadioSet, FCDoubleSpinner, FCCheckBox, \
|
||||
OptionalHideInputSection, FCComboBox, FCFileSaveDialog, FCButton, FCLabel, FCSpinner, VerticalScrollArea
|
||||
OptionalHideInputSection, FCComboBox, FCFileSaveDialog, FCButton, FCLabel, FCSpinner, \
|
||||
VerticalScrollArea, FCGridLayout
|
||||
|
||||
from copy import deepcopy
|
||||
import logging
|
||||
@@ -1174,7 +1175,7 @@ class FilmUI:
|
||||
self.title_box.addWidget(self.level)
|
||||
|
||||
# Grid Layout
|
||||
grid0 = QtWidgets.QGridLayout()
|
||||
grid0 = FCGridLayout(v_spacing=3)
|
||||
self.tools_box.addLayout(grid0)
|
||||
|
||||
grid0.setColumnStretch(0, 0)
|
||||
@@ -1448,7 +1449,7 @@ class FilmUI:
|
||||
self.punch_frame = QtWidgets.QFrame()
|
||||
self.punch_frame.setContentsMargins(0, 0, 0, 0)
|
||||
self.layout.addWidget(self.punch_frame)
|
||||
punch_grid = QtWidgets.QGridLayout()
|
||||
punch_grid = FCGridLayout(v_spacing=3)
|
||||
punch_grid.setContentsMargins(0, 0, 0, 0)
|
||||
self.punch_frame.setLayout(punch_grid)
|
||||
|
||||
@@ -1498,7 +1499,7 @@ class FilmUI:
|
||||
self.punch_size_label.hide()
|
||||
self.punch_size_spinner.hide()
|
||||
|
||||
self.grid1 = QtWidgets.QGridLayout()
|
||||
self.grid1 = FCGridLayout(v_spacing=3)
|
||||
self.layout.addLayout(self.grid1)
|
||||
self.grid1.setColumnStretch(0, 0)
|
||||
self.grid1.setColumnStretch(1, 1)
|
||||
|
||||
Reference in New Issue
Block a user