public property layout as Layout:
Layout manager associated with this container.
Assigning a layout automatically detaches the previous manager, attaches the new one and recomputes child geometry when automatic relayout is enabled.
panel = Container() panel.layout = VBoxLayout(spacing=8)