msticpy/config/compound_ctrls.py
def _get_val_from_ctrl(self, val_dict):
        """Recursive get values from control dictionary."""
        ctrl_val = {}
        if not val_dict:
            return val_dict
        for name, value in val_dict.items():
            if isinstance(value, widgets.Label):
                continue
            if isinstance(value, dict):
                ctrl_val[name] = self._get_val_from_ctrl(value)
            elif isinstance(value, widgets.Widget):
                ctrl_val[name] = widget_to_py(ctrl=value)
            else:
                ctrl_val[name] = value
        return ctrl_val
Recursive get values from control dictionary.
Recursive get values from control dictionary.
Recursive get values from control dictionary .
def _get_val_from_ctrl(self, val_dict):
        ctrl_val = {}
        if not val_dict:
            return val_dict
        for name, value in val_dict.items():
            if isinstance(value, widgets.Label):
                continue
            if isinstance(value, dict):
                ctrl_val[name] = self._get_val_from_ctrl(value)
            elif isinstance(value, widgets.Widget):
                ctrl_val[name] = widget_to_py(ctrl=value)
            else:
                ctrl_val[name] = value
        return ctrl_val
def _get_val_from_ctrl ( self , val_dict ) : ctrl_val = { } if not val_dict : return val_dict for name , value in val_dict . items ( ) : if isinstance ( value , widgets . Label ) : continue if isinstance ( value , dict ) : ctrl_val [ name ] = self . _get_val_from_ctrl ( value ) elif isinstance ( value , widgets . Widget ) : ctrl_val [ name ] = widget_to_py ( ctrl = value ) else : ctrl_val [ name ] = value return ctrl_val
Recursive get values from control dictionary.
Recursive get values from control dictionary .
"""Recursive get values from control dictionary."""
self
val_dict