TTkLayoutItem🌶️

class TTkLayoutItem(*, x: int = 0, y: int = 0, z: int = 0, pos: tuple = None, width: int = 0, height: int = 0, size: tuple = None, row: int = 0, col: int = 0, rowspan: int = 1, colspan: int = 1, layoutItemType: LayoutItemTypes = 0, maxWidth: int = 65536, maxHeight: int = 65536, maxSize: tuple = None, minWidth: int = 0, minHeight: int = 0, minSize: tuple = None, **kwargs)[source]🌶️

Bases: object

TTkLayoutItem is the base class of layout Items inherited by TTkLayout, TTkWidgetItem, and all the derived layout managers.

Parameters:
  • row (int) – (used only in the TTkGridLayout), the row of the grid, optional, defaults to None

  • col (int) – (used only in the TTkGridLayout), the col of the grid, optional, defaults to None

  • rowspan (int) – (used only in the TTkGridLayout), the rows used by this, optional, defaults to 1

  • colspan (int) – (used only in the TTkGridLayout), the cols used by this, optional, defaults to 1

  • layoutItemType (TTkConstant.LayoutItemTypes) – The Type of this class, optional, defaults to TTkK.NONE

  • alignment (TTkConstant.Alignment) – The alignment of this item in the layout (not yet used)

Methods🌶️

geometry()[source]🌶️
layer()[source]🌶️
layoutItemType()[source]🌶️
maxDimension(o) int[source]🌶️
maximumHeight() int[source]🌶️
maximumHeightSpan(pos) int[source]🌶️
maximumSize()[source]🌶️
maximumWidth() int[source]🌶️
maximumWidthSpan(pos) int[source]🌶️
minDimension(o) int[source]🌶️
minimumHeight() int[source]🌶️
minimumHeightSpan(pos) int[source]🌶️
minimumSize()[source]🌶️
minimumWidth() int[source]🌶️
minimumWidthSpan(pos) int[source]🌶️
offset()[source]🌶️
parent()[source]🌶️
pos()[source]🌶️
setGeometry(x, y, w, h)[source]🌶️
setLayer(layer)[source]🌶️
setOffset(x, y)[source]🌶️
setParent(parent)[source]🌶️
size()[source]🌶️

TTkLayoutItem Attributes🌶️

LAYER0

LAYER1

LAYER2

LAYER3

LAYERMASK