TTkAbstractScrollViewGridLayout🌶️
- class TTkAbstractScrollViewGridLayout(*args, **kwargs)[source]🌶️
Bases:
TTkGridLayout,TTkAbstractScrollViewInterfaceTTkAbstractScrollViewGridLayoutSignals🌶️
This signal is emitted whenever there is a change in the view content topology (size,pos)
This signal is emitted when the view content move to a new position (x,y),
This signal is emitted when the view content size changed
Slots🌶️
viewMoveTo(x, y)Move the view to the specified offset position and propagate to child widgets
Members🌶️
- viewChanged: pyTTkSignal🌶️
This signal is emitted whenever there is a change in the view content topology (size,pos)
Note
This signal is normally emitted from any implementation of
TTkAbstractScrollViewto notify that the view content boudaries changed
- viewMovedTo: pyTTkSignal🌶️
This signal is emitted when the view content move to a new position (x,y),
- Parameters:
x (int) – the new horizontal offset
y (int) – the new vertical offset
- viewSizeChanged: pyTTkSignal🌶️
This signal is emitted when the view content size changed
- Parameters:
width (int) – the new width
height (int) – the new height
Methods🌶️
- getViewOffsets() Tuple[int, int][source]🌶️
Retrieve the vertical and horizontal offsets of the
TTkAbstractScrollViewInterfaceNote
Reimplement this function to handle this event
- This method is already implemented in the following classes:
- Returns:
the (x,y) offset
- Return type:
tuple[int,int]
- viewDisplayedSize() Tuple[int, int][source]🌶️
Return the displayed size by computing the maximum displayed size from all child widgets
- Returns:
the (width, height) of the displayed area
- Return type:
tuple[int,int]
- viewFullAreaSize() Tuple[int, int][source]🌶️
Return the full area size by computing the maximum size from all child widgets
- Returns:
the (width, height) of the full area
- Return type:
tuple[int,int]
- viewMoveTo(x: int, y: int) None[source]🌶️
Move the view to the specified offset position and propagate to child widgets
- Parameters:
x (int) – the horizontal offset
y (int) – the vertical offset
Methods Inherited from:
TTkGridLayoutaddItem(item[, row, col, rowspan, colspan])Add a layout item that implements
TTkAbstractScrollViewInterfaceto the grid layoutaddItems(items[, row, col, rowspan, ...])Add the items to this
TTkGridLayoutaddWidget(widget[, row, col, rowspan, colspan])Add a widget that implements
TTkAbstractScrollViewInterfaceto the grid layoutaddWidgets(widgets[, row, col, rowspan, ...])Add the widgets to this
TTkGridLayout, this function usesaddItem()columnMinWidth()Return the minimum width used for empty columns.
getSizes()Return cached horizontal and vertical slot sizes.
gridItems()Return the internal 2D grid matrix of layout items.
gridSize()Return current allocated grid size as
(rows, cols).insertColumn(col)Insert an empty column at
coland shift items to the right.insertRow(row)Insert an empty row at
rowand shift items downward.itemAtPosition(row, col)Return the item occupying
(row, col).maximumColWidth(gridCol)Return the maximum width allowed for a column.
maximumHeight()Return the layout maximum height from all grid rows.
maximumRowHeight(gridRow)Return the maximum height allowed for a row.
maximumWidth()Return the layout maximum width from all grid columns.
minimumColWidth(gridCol)Return the minimum width required for a column.
minimumHeight()Return the layout minimum height from all grid rows.
minimumRowHeight(gridRow)Return the minimum height required for a row.
minimumWidth()Return the layout minimum width from all grid columns.
removeItem(item)Remove a single layout item from the grid.
removeItems(items)Remove multiple layout items and clear their grid cells.
removeWidget(widget)Remove a single widget from the grid.
removeWidgets(widgets)Remove multiple widgets from the grid.
repack()Remove empty rows/columns and compact item row/column indices.
replaceItem(item, index)Not implemented for grid layout indexed replacement.
rowMinHeight()Return the minimum height used for empty rows.
setColumnMinWidth(cmw)Set the minimum width used for empty columns.
setRowMinHeight(rmh)Set the minimum height used for empty rows.
update(*args, **kwargs)Recompute cell geometry and update child widgets/layouts.
Methods Inherited from:
TTkLayoutaddItem(item[, row, col, rowspan, colspan])Add a layout item that implements
TTkAbstractScrollViewInterfaceto the grid layoutaddItems(items[, row, col, rowspan, ...])Add the items to this
TTkGridLayoutaddWidget(widget[, row, col, rowspan, colspan])Add a widget that implements
TTkAbstractScrollViewInterfaceto the grid layoutaddWidgets(widgets[, row, col, rowspan, ...])Add the widgets to this
TTkGridLayout, this function usesaddItem()children()Return the list of direct child layout items.
clear()Remove and detach all items from this layout.
count()Return the number of direct child layout items.
fullWidgetAreaGeometry()Return the bounding geometry that encloses all child items.
insertItem(index, item)Insert a single item at
index.insertItems(index, items)Insert multiple items at
indexand re-parent them.insertWidget(index, widget)Insert a widget at
index.insertWidgets(index, widgets)Insert widgets at
index.itemAt(index)Return the item at
indexorNonewhen out of range.iterWidgets([onlyVisible, recurse, reverse])Iterate over all widgets in the layout.
layoutItemType()Return
TTkK.LayoutItemTypes.LayoutItem.lowerWidget(widget)Lower a widget (and its branch) to the bottom z-order.
parentWidget()Return the widget owning this layout branch.
raiseWidget(widget)Raise a widget (and its branch) to the top z-order.
removeItem(item)Remove a single layout item from the grid.
removeItems(items)Remove multiple layout items and clear their grid cells.
removeWidget(widget)Remove a single widget from the grid.
removeWidgets(widgets)Remove multiple widgets from the grid.
replaceItem(item, index)Not implemented for grid layout indexed replacement.
setGeometry(x, y, w, h)Set the geometry and emit viewChanged signal
setParent(parent)Set the parent layout item and propagate parent widget ownership.
update(*args, **kwargs)Recompute cell geometry and update child widgets/layouts.
TTkAbstractScrollViewGridLayout Attributes🌶️
|
|
|
|
|
|
|
|
|
|
|
Return child items sorted by z-order. |