- updated the FCRadio class with a method that allow disabling certain options

- the Path optimization options for Excellon and Geometry objects are now available depending on the OS platform used (32bit vs 64bit)
This commit is contained in:
Marius Stanciu
2020-07-21 00:57:26 +03:00
committed by Marius
parent a3e1570747
commit e99dd967fe
5 changed files with 48 additions and 26 deletions

View File

@@ -99,6 +99,11 @@ class RadioSet(QtWidgets.QWidget):
return
log.error("Value given is not part of this RadioSet: %s" % str(val))
def setOptionsDisabled(self, options: list, val: bool) -> None:
for option in self.choices:
if option['label'] in options:
option['radio'].setDisabled(val)
# class RadioGroupChoice(QtWidgets.QWidget):
# def __init__(self, label_1, label_2, to_check, hide_list, show_list, parent=None):