Containers

Layout and grouping widgets for organizing UI elements.

Container

Generic container for grouping child widgets. Supports layout assignment.

  • layout: enum
  • spacing: int
  • padding: int
Frame

Visual frame with border and optional title. Groups related widgets.

  • title: string
  • frameWidth: int
GroupBox

Container with raised border and title. Visual grouping for form sections.

  • title: string
  • checkable: bool
ScrollView

Scrollable container with content clipping. vscroll/hscroll attach real ScrollBar children on the right/bottom edge. Content scrolls via mouse wheel (step 40 px), pointer drag, or the bars.

  • vscroll: bool
  • hscroll: bool
  • content_width: int
  • content_height: int
Window

Top-level window with title bar and close button. Full-screen or dialog mode.

  • title: string
  • width: int
  • height: int
  • flags: enum
Page

Stylized page container with header. Used in TabView and StackView.

  • title: string
  • headerVisible: bool
SplitView

Resizable split container with draggable divider. Two panes, horizontal or vertical.

  • orientation: enum
  • position: float
Drawer

Sliding side panel. Edges in from left or right on trigger.

  • edge: enum
  • open: bool
  • width: int
Pane

Stylized container with subtle background. Generic grouping element.

  • background: color
  • padding: int
Toolbar

Horizontal bar for action buttons. Top or bottom placement.

  • orientation: enum
  • buttons: list
Popup

Floating framed container with a title bar, close button and real child widgets. show(x, y) opens it; the close X and the Escape key close it. Children stay interactive. Emits Closed.

  • title: string
  • visible: bool (default False)
  • show(x, y)
  • hide()
ScrollBar

Vertical or horizontal scrollbar with draggable thumb. Emits ValueChanged.

  • value: float
  • min_value: float
  • max_value: float
  • page_size: float
  • orientation: vertical|horizontal