              if key in ("anchor", "justify", "compound") and val == "":
                  continue
              val = str(val) if isinstance(val, Tcl_Obj) else val
              # Return correct command from master command dict
              val = _RECREATE_OBJECTS["commands"][val] if key == "command" and val != "" else val
              new_config[key] = val
          return new_config
  
 
</s> remove             if child.winfo_ismapped():
                id_ = str(child)
                if child.__class__.__name__ == "MultiOption":
                    # MultiOption checkbox groups are a custom object with additional parameter
                    # requirements.
                    custom_kwargs = dict(
                        value=child._value,  # pylint:disable=protected-access
                        variable=child._master_variable)  # pylint:disable=protected-access
                else:
                    custom_kwargs = dict()
 </s> add             # Hidden Toggle Frame boxes need to be mapped
            if child.winfo_ismapped() or "toggledframe_subframe" in str(child):
                not_mapped = not child.winfo_ismapped()
                # ToggleFrame is a custom widget that creates it's own children and handles
                # bindings on the headers, to auto-hide the contents. To ensure that all child
                # information (specifically pack information) can be collected, we need to pack
                # any hidden sub-frames. These are then hidden again once collected.
                if not_mapped and (child.winfo_name() == "toggledframe_subframe" or
                                   child.winfo_name() == "chkbuttons"):
                    child.pack(fill=tk.X, expand=True)
                    child.update_idletasks()  # Updates the packing info of children
                    unpack.add(child)

                if child.winfo_name().startswith("toggledframe_header"):
                    # Headers should be entirely handled by parent widget
                    continue </s> remove                       variable=self.option.tk_var)
 </s> add                       variable=self.option.tk_var,
                      style=style) </s> remove         """ Compile all children recursively in correct order if not already compiled """
 </s> add         """ Compile all children recursively in correct order if not already compiled and add
        to :attr:`_widget_config` """ </s> remove                              name="{}_labelframe".format(option_type))
 </s> add                              name="{}_labelframe".format(option_type),
                             style="CPanel.TLabelframe")
            # Following keys cannot be defined after widget is created:
            if key in ("colormap", "container", "visual"):
                continue
              if key in ("anchor", "justify", "compound") and val == "":
                  continue
            # Following keys cannot be defined after widget is created:
            if key in ("colormap", "container", "visual"):
                continue
              val = str(val) if isinstance(val, Tcl_Obj) else val
              # Return correct command from master command dict
              val = _RECREATE_OBJECTS["commands"][val] if key == "command" and val != "" else val
              new_config[key] = val
          return new_config
  
keep add keep keep keep keep keep keep
 GUI - Make groups collapsible 
lib/gui/control_helper.py