TTkWidgetItem🌶️

class TTkWidgetItem(*, widget: TTkWidget, **kwargs: Any)[source]🌶️

Bases: TTkLayoutItem

Layout item wrapper for a single TTkWidget instance.

Methods🌶️

geometry() → Tuple[int, int, int, int][source]🌶️

Return the wrapped widget geometry as (x, y, width, height).

isEmpty() → bool[source]🌶️

Return True when no widget is associated with this item.

isVisible() → bool[source]🌶️

Return True when the wrapped widget is visible.

layoutItemType() → LayoutItemTypes[source]🌶️

Return TTkK.LayoutItemTypes.WidgetItem.

maxDimension(o: int) → int[source]🌶️

Return wrapped widget maximum size along an orientation.

maximumHeight() → int[source]🌶️

Return wrapped widget maximum height.

maximumSize() → Tuple[int, int][source]🌶️

Return the wrapped widget maximum size.

maximumWidth() → int[source]🌶️

Return wrapped widget maximum width.

minDimension(o: int) → int[source]🌶️

Return wrapped widget minimum size along an orientation.

minimumHeight() → int[source]🌶️

Return wrapped widget minimum height.

minimumSize() → Tuple[int, int][source]🌶️

Return the wrapped widget minimum size.

minimumWidth() → int[source]🌶️

Return wrapped widget minimum width.

pos() → Tuple[int, int][source]🌶️

Return the wrapped widget position as (x, y).

setGeometry(x: int, y: int, w: int, h: int) → None[source]🌶️

Forward geometry updates to the wrapped widget.

Parameters:
  • x (int) – horizontal position

  • y (int) – vertical position

  • w (int) – width

  • h (int) – height

size() → Tuple[int, int][source]🌶️

Return the wrapped widget size as (width, height).

widget() → TTkWidget[source]🌶️

Return the wrapped widget.

TTkWidgetItem Attributes🌶️

LAYER0

LAYER1

LAYER2

LAYER3

LAYERMASK