Refactor the app prefs group

This commit is contained in:
David Robertson
2020-05-03 15:38:26 +01:00
parent df9ebaf2c9
commit a2d48d1c66
7 changed files with 266 additions and 416 deletions

View File

@@ -17,8 +17,8 @@ from flatcamGUI.preferences.OptionUI import OptionUI, CheckboxOptionUI, RadioSet
class GeneralGUIPrefGroupUI(OptionsGroupUI2):
def __init__(self, decimals=4, **kwargs):
super().__init__(**kwargs)
self.decimals = decimals
super().__init__(**kwargs)
self.setTitle(str(_("GUI Preferences")))
self.layout_field = self.option_dict()["layout"].get_field()