Multiple depth cut functional.

This commit is contained in:
Juan Pablo Caram
2015-11-01 18:06:20 -05:00
parent d2de53b546
commit 051b82009d
4 changed files with 105 additions and 22 deletions

View File

@@ -246,9 +246,16 @@ class VerticalScrollArea(QtGui.QScrollArea):
return QtGui.QWidget.eventFilter(self, source, event)
class OptionalInputSection():
class OptionalInputSection:
def __init__(self, cb, optinputs):
"""
Associates the a checkbox with a set of inputs.
:param cb: Checkbox that enables the optional inputs.
:param optinputs: List of widgets that are optional.
:return:
"""
assert isinstance(cb, FCCheckBox), \
"Expected an FCCheckBox, got %s" % type(cb)