'Wrap any Widgets of a list of child layouts in a WidgetBox.
This allows for the convenience of just spelling Row(button1, button2).'

def _wrap_children(self, children):

    from .widgets.widget import Widget
    wrapped_children = []
    for child in children:
        if isinstance(child, Widget):
            child = WidgetBox(children=[child], sizing_mode=child.sizing_mode, width=child.width, height=child.height, disabled=child.disabled)
        wrapped_children.append(child)
    return wrapped_children
