Work in progress on prefs overhaul

This commit is contained in:
David Robertson
2020-05-02 01:11:31 +01:00
parent 86ef9d9038
commit a00cdd6de7
10 changed files with 463 additions and 92 deletions

View File

@@ -1,5 +1,8 @@
from typing import Dict
from PyQt5 import QtWidgets
from flatcamGUI.preferences.OptionUI import OptionUI
from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI
@@ -20,3 +23,10 @@ class PreferencesSectionUI(QtWidgets.QWidget):
def build_groups(self) -> [OptionsGroupUI]:
return []
def option_dict(self) -> Dict[str, OptionUI]:
result = {}
for group in self.groups:
groupoptions = group.option_dict()
result.update(groupoptions)
return result