Commit 5349524f authored by Lars Kruse's avatar Lars Kruse

replaced gtk-specific code with a generic call

parent f6e8c3ba
...@@ -77,12 +77,7 @@ class ParameterGroupManager(pycam.Plugins.PluginBase): ...@@ -77,12 +77,7 @@ class ParameterGroupManager(pycam.Plugins.PluginBase):
else: else:
active_parameters = [] active_parameters = []
for param in group["parameters"].values(): for param in group["parameters"].values():
widget = param["control"].get_widget() param["control"].set_visible(param["name"] in active_parameters)
# TODO: this is gtk-specific (show/hide)
if param["name"] in active_parameters:
widget.show()
else:
widget.hide()
def register_parameter_set(self, group_name, name, label, func, def register_parameter_set(self, group_name, name, label, func,
parameters=None, weight=100): parameters=None, weight=100):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment