GeneralPreferencesUI.py 994 B

1234567891011121314151617181920212223
  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.GeneralAPPSetGroupUI import GeneralAPPSetGroupUI
  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. self.general_app_group = GeneralAppPrefGroupUI(decimals=self.decimals)
  11. self.general_app_set_group = GeneralAPPSetGroupUI(decimals=self.decimals)
  12. super().__init__(**kwargs)
  13. def build_groups(self) -> [OptionsGroupUI]:
  14. return [
  15. self.general_app_group,
  16. self.general_gui_group,
  17. self.general_app_set_group
  18. ]