Scrolled Window

class pumpia.widgets.scrolled_window.ScrolledWindow(parent: Misc, y_scroll: bool = True, x_scroll: bool = True, *, border: str | float = ..., borderwidth: str | float = ..., class_: str = '', cursor: str | tuple[str] | tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str] = '', height: str | float = 0, name: str = ..., padding: str | float | tuple[str | float] | tuple[str | float, str | float] | tuple[str | float, str | float, str | float] | tuple[str | float, str | float, str | float, str | float] = ..., relief: Literal['raised', 'sunken', 'flat', 'ridge', 'solid', 'groove'] = ..., style: str = '', takefocus: bool | Literal[0, 1, ''] | Callable[[str], bool | None] = '', width: str | float = 0)
class pumpia.widgets.scrolled_window.ScrolledWindow(parent: Misc, y_scroll: bool = True, x_scroll: bool = True, **kw)

A frame with scrollbars that automatically adjust to the size of the content.

Parameters:
  • parent (tk.Misc) – The parent widget.

  • y_scroll (bool, optional) – Whether to enable vertical scrolling (default is True).

  • x_scroll (bool, optional) – Whether to enable horizontal scrolling (default is True).

  • border (ScreenUnits, optional) – The border size (default is None).

  • borderwidth (ScreenUnits, optional) – The border width (default is None).

  • class (str, optional) – The class name (default is “”).

  • cursor (Cursor, optional) – The cursor type (default is “”).

  • height (ScreenUnits, optional) – The height of the frame (default is 0).

  • name (str, optional) – The name of the frame (default is None).

  • padding (Padding, optional) – The padding of the frame (default is None).

  • relief (Relief, optional) – The relief style (default is None).

  • style (str, optional) – The style of the frame (default is “”).

  • takefocus (TakeFocusValue, optional) – The take focus value (default is “”).

  • underline (int, optional) – The underline position (default is -1).

  • width (ScreenUnits, optional) – The width of the frame (default is 0).

Notes

For parent widgets such as paned window where it is managed through .add use ScrolledWindow.outer_frame as the child argument