cleanup
This commit is contained in:
parent
21756bea9c
commit
c5b2bac591
|
@ -1,5 +1,4 @@
|
||||||
from PyQt5 import QtWidgets
|
from PyQt5 import QtWidgets
|
||||||
from PyQt5.QtCore import QSettings
|
|
||||||
|
|
||||||
from flatcamGUI.GUIElements import FCCheckBox, RadioSet, FCDoubleSpinner, FCSpinner, OptionalInputSection
|
from flatcamGUI.GUIElements import FCCheckBox, RadioSet, FCDoubleSpinner, FCSpinner, OptionalInputSection
|
||||||
from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
from flatcamGUI.preferences.OptionsGroupUI import OptionsGroupUI
|
||||||
|
@ -12,16 +11,9 @@ fcTranslate.apply_language('strings')
|
||||||
if '_' not in builtins.__dict__:
|
if '_' not in builtins.__dict__:
|
||||||
_ = gettext.gettext
|
_ = gettext.gettext
|
||||||
|
|
||||||
settings = QSettings("Open Source", "FlatCAM")
|
|
||||||
if settings.contains("machinist"):
|
|
||||||
machinist_setting = settings.value('machinist', type=int)
|
|
||||||
else:
|
|
||||||
machinist_setting = 0
|
|
||||||
|
|
||||||
|
|
||||||
class GerberAdvOptPrefGroupUI(OptionsGroupUI):
|
class GerberAdvOptPrefGroupUI(OptionsGroupUI):
|
||||||
def __init__(self, decimals=4, parent=None):
|
def __init__(self, decimals=4, parent=None):
|
||||||
# OptionsGroupUI.__init__(self, "Gerber Adv. Options Preferences", parent=parent)
|
|
||||||
super(GerberAdvOptPrefGroupUI, self).__init__(self, parent=parent)
|
super(GerberAdvOptPrefGroupUI, self).__init__(self, parent=parent)
|
||||||
|
|
||||||
self.setTitle(str(_("Gerber Adv. Options")))
|
self.setTitle(str(_("Gerber Adv. Options")))
|
||||||
|
|
Loading…
Reference in New Issue