Container is an abstract base class for components which can contain other components. The contained components are clipped to the boundary of their container.
The Container class provides a flexible placement facility for laying out its contents and specifying how the contents behave when the container is resized.
- contents
- List of contained Components.
- Do not modify the contents of this list directly. Use the placement methods, or the add and remove methods, to modify the containment hierarchy.
- add(component)
- Adds the given component to this container.
- remove(component)
- If the given component is among the contents of this container, removes it.
- place(item,
left = None, right = None, top = None, bottom = None,
sticky = 'nw', scrolling = '', border = False)
- place_row(items,
left = None, right = None, top = None, bottom = None,
sticky = 'nw', scrolling = '',border = False)
- place_column(items,
left = None, right = None, top = None, bottom = None,
sticky = 'nw', scrolling = '', border = False)
- These methods add a component or list of components to the container with the specified placement options. See Placement Methods.
- shrink_wrap(padding = (0, 0))
- Changes the size of the container so that it just encloses its contents, plus the specified padding on the right and bottom.
---