TTkAbstractScrollViewGridLayout🌶️

class TTkAbstractScrollViewGridLayout(*args, **kwargs)[source]🌶️

Bases: TTkGridLayout, TTkAbstractScrollViewInterface

TTkAbstractScrollViewGridLayout

Signals🌶️

viewChanged

This signal is emitted whenever there is a change in the view content topology (size,pos)

viewMovedTo

This signal is emitted when the view content move to a new position (x,y),

viewSizeChanged

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 TTkAbstractScrollView to 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 TTkAbstractScrollViewInterface

Note

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: TTkGridLayout

addItem(item[, row, col, rowspan, colspan])

Add a layout item that implements TTkAbstractScrollViewInterface to the grid layout

addItems(items[, row, col, rowspan, ...])

Add the items to this TTkGridLayout

addWidget(widget[, row, col, rowspan, colspan])

Add a widget that implements TTkAbstractScrollViewInterface to the grid layout

addWidgets(widgets[, row, col, rowspan, ...])

Add the widgets to this TTkGridLayout, this function uses addItem()

columnMinWidth()

getSizes()

gridItems()

gridSize()

insertColumn(col)

insertRow(row)

itemAtPosition(row, col)

maximumColWidth(gridCol)

maximumHeight()

process the widgets and get the min size

maximumRowHeight(gridRow)

maximumWidth()

process the widgets and get the min size

minimumColWidth(gridCol)

minimumHeight()

process the widgets and get the min size

minimumRowHeight(gridRow)

minimumWidth()

process the widgets and get the min size

removeItem(item)

removeItems(items)

removeWidget(widget)

Remove a widget from this Layout

removeWidgets(widgets)

Remove a list of widget from this Layout

repack()

replaceItem(item, index)

rowMinHeight()

setColumnMinWidth(cmw)

setRowMinHeight(rmh)

update(*args, **kwargs)

Methods Inherited from: TTkLayout

addItem(item[, row, col, rowspan, colspan])

Add a layout item that implements TTkAbstractScrollViewInterface to the grid layout

addItems(items[, row, col, rowspan, ...])

Add the items to this TTkGridLayout

addWidget(widget[, row, col, rowspan, colspan])

Add a widget that implements TTkAbstractScrollViewInterface to the grid layout

addWidgets(widgets[, row, col, rowspan, ...])

Add the widgets to this TTkGridLayout, this function uses addItem()

children()

clear()

count()

fullWidgetAreaGeometry()

insertItem(index, item)

insertItems(index, items)

insertWidget(index, widget)

insertWidgets(index, widgets)

itemAt(index)

iterWidgets([onlyVisible, recurse, reverse])

Iterate over all widgets in the layout.

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)

Set the geometry and emit viewChanged signal

setParent(parent)

update(*args, **kwargs)

TTkAbstractScrollViewGridLayout Attributes🌶️

LAYER0

LAYER1

LAYER2

LAYER3

LAYERMASK

zSortedItems