class Frame(Component)

A Frame is a component which can contain other components. The contained components are clipped to the boundary of their containing frame.

The Frame class provides a flexible placement facility for laying out its contents and specifying how the contents behave when the Frame is resized.

Properties

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.

Methods

add(component)
Adds the given component to the contents of this frame.

remove(component)
If the given component is among the contents of this frame, 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 frame with the specified placement options. See Placement Methods.
shrink_wrap(padding = (0, 0))
Changes the size of the frame so that it just encloses its contents, plus the specified padding on the right and bottom.

Destructor

destroy()
Destroys the frame and all its contained subcomponents.

---