Introduce a PreferencesSectionUI widget

This commit is contained in:
David Robertson
2020-05-01 02:21:59 +01:00
parent 9ec6b3afb2
commit 86ef9d9038
3 changed files with 38 additions and 19 deletions

View File

@@ -0,0 +1,22 @@
from PyQt5 import QtWidgets
from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI
class PreferencesSectionUI(QtWidgets.QWidget):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.layout = QtWidgets.QHBoxLayout()
self.setLayout(self.layout)
self.groups = self.build_groups()
for group in self.groups:
group.setMinimumWidth(250)
self.layout.addWidget(group)
self.layout.addStretch()
def build_groups(self) -> [OptionsGroupUI]:
return []