- 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

@@ -7,7 +7,7 @@
from appEditors.AppTextEditor import AppTextEditor
from appObjects.FlatCAMCNCJob import CNCJobObject
from appGUI.GUIElements import FCTextArea, FCEntry, FCButton, FCTable
from appGUI.GUIElements import FCTextArea, FCEntry, FCButton, FCTable, FCGridLayout
from PyQt6 import QtWidgets, QtCore, QtGui
# from io import StringIO
@@ -827,7 +827,7 @@ class AppGCodeEditorUI:
self.snippet_frame.setContentsMargins(0, 0, 0, 0)
self.edit_box.addWidget(self.snippet_frame)
self.snippet_grid = QtWidgets.QGridLayout()
self.snippet_grid = FCGridLayout(v_spacing=3)
# self.snippet_grid.setColumnStretch(0, 0)
# self.snippet_grid.setColumnStretch(1, 1)
self.snippet_grid.setContentsMargins(0, 0, 0, 0)