Skip to main content

ResizablePanel

One panel of a ResizablePanelGroup.

Sizes are fractions of the group's length along its axis, from 0 to 1.

Inherits: Control

Properties

  • content - The control shown in this panel.
  • default_size - The initial size of this panel.
  • max_size - The largest size the user can grow this panel to.
  • min_size - The smallest size the user can shrink this panel to.

Properties​

contentinstance-attribute​

content: Control

The control shown in this panel.

default_sizeinstance-attribute​

default_size: Number

The initial size of this panel.

The default sizes of all panels in a group must add up to 1.

Raises:

  • ValueError - If it is not between 0 and 1, inclusive.
  • ValueError - If it is not between min_size and max_size.

max_sizeclass-attributeinstance-attribute​

max_size: Number = 1.0

The largest size the user can grow this panel to.

Raises:

  • ValueError - If it is not between 0 and 1, inclusive.
  • ValueError - If it is not greater than or equal to min_size.

min_sizeclass-attributeinstance-attribute​

min_size: Number = 0.0

The smallest size the user can shrink this panel to.

Raises:

  • ValueError - If it is not between 0 and 1, inclusive.
  • ValueError - If it is not less than or equal to max_size.