GeneralPreferencesUI.py 889 B

123456789101112131415161718192021
  1. from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI
  2. from flatcamGUI.preferences.PreferencesSectionUI import PreferencesSectionUI
  3. from flatcamGUI.preferences.general.GeneralAppPrefGroupUI import GeneralAppPrefGroupUI
  4. from flatcamGUI.preferences.general.GeneralAppSettingsGroupUI import GeneralAppSettingsGroupUI
  5. from flatcamGUI.preferences.general.GeneralGUIPrefGroupUI import GeneralGUIPrefGroupUI
  6. class GeneralPreferencesUI(PreferencesSectionUI):
  7. def __init__(self, decimals, **kwargs):
  8. self.decimals = decimals
  9. self.general_gui_group = GeneralGUIPrefGroupUI(decimals=self.decimals)
  10. super().__init__(**kwargs)
  11. def build_groups(self) -> [OptionsGroupUI]:
  12. return [
  13. GeneralAppPrefGroupUI(decimals=self.decimals),
  14. self.general_gui_group,
  15. GeneralAppSettingsGroupUI(decimals=self.decimals)
  16. ]