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