TTkGridLayout๐ถ๏ธ
- class TTkGridLayout(*, columnMinWidth: int = 0, rowMinHeight: int = 0, **kwargs)[source]๐ถ๏ธ
Bases:
TTkLayout
The grid layout allows an automatic place all the widgets in a grid, <br/> the empty rows/cols are resized to the โrowMinHeight,columnMinWidthโ parameters
TTkGridLayout โโ columnMinWidth โโโโโโโโโโโคโโโโโโโโโโคโคโโโโโโโโโโ โ Widget1 โ Widget2 โโ Widget3 โ โ (0,0) โ (0,1) โโ (0,3) โ โโโโโโโโโโโผโโโโโโโโโโผโผโโโโโโโโโโข โ rowMinHeight โโโโโโโโโโโผโโโโโโโโโโผโผโโโโโโโโโโข โ โ Widget4 โ โโ โ โ (2,0) โ โโ โ โโโโโโโโโโโผโโโโโโโโโโผโผโโโโโโโโโโข โ โ โโ Widget5 โ โ โ โโ (3,3) โ โโโโโโโโโโโงโโโโโโโโโโงโงโโโโโโโโโโ
- Parameters:
columnMinWidth (int) โ the minimum width of the column, optional, defaults to 0
rowMinHeight (int) โ the minimum height of the column, optional, defaults to 0
Slots๐ถ๏ธ
Methods๐ถ๏ธ
Methods Inherited from:
TTkLayout
addItem
(item[,ย row,ย col,ย rowspan,ย colspan,ย ...])Add the item to this
TTkGridLayout
addItems
(items[,ย row,ย col,ย rowspan,ย ...])Add the items to this
TTkGridLayout
addWidget
(widget[,ย row,ย col,ย rowspan,ย ...])Add the widget to this
TTkGridLayout
, this function usesaddItem()
addWidgets
(widgets[,ย row,ย col,ย rowspan,ย ...])Add the widgets to this
TTkGridLayout
, this function usesaddItem()
children
()count
()fullWidgetAreaGeometry
()insertItem
(index,ย item)insertItems
(index,ย items)insertWidget
(index,ย widget)insertWidgets
(index,ย widgets)itemAt
(index)iterWidgets
([onlyVisible,ย recurse])lowerWidget
(widget)parentWidget
()raiseWidget
(widget)removeItem
(item)removeItems
(items)removeWidget
(widget)Remove a widget from this Layout
removeWidgets
(widgets)Remove a list of widget from this Layout
replaceItem
(item,ย index)setGeometry
(x,ย y,ย w,ย h)setParent
(parent)update
(*args,ย **kwargs)
TTkGridLayout Attributes๐ถ๏ธ
|
|
|
|
|
|
|
|
|
|
|