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)

This method is used to set the vertical and horizontal offsets of the TTkAbstractScrollViewInterface

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 heighht

Methods🌶️

getViewOffsets() tuple[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() -> (<class 'int'>, <class 'int'>)[source]🌶️

This method returns the displayed size of the TTkAbstractScrollViewInterface implementation.

Note

Reimplement this function to handle this event

This method is already implemented in the following classes:

Unless a different iplementation is required, by default it should return TTkWidget.size()

Returns:

the displayed size as a tuple of 2 int elements (width,height)

Return type:

tuple[int,int]

viewFullAreaSize() -> (<class 'int'>, <class 'int'>)[source]🌶️

This method returns the full widget area size of the TTkAbstractScrollViewInterface implementation.

This is required to TTkAbstractScrollArea implementation to handle the on-demand scroll bars.

Note

Reimplement this function to handle this event

Returns:

the full area size as a tuple of 2 int elements (width,height)

Return type:

tuple[int,int]

viewMoveTo(x: int, y: int)[source]🌶️

This method is used to set 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:
Parameters:
  • x (int) – the horizontal position

  • y (int) – the vertical position

Methods Inherited from: TTkGridLayout

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, colspan])

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

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 the item to this TTkGridLayout

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

Add the items to this TTkGridLayout

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

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

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

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

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)

TTkAbstractScrollViewGridLayout Attributes🌶️

LAYER0

LAYER1

LAYER2

LAYER3

LAYERMASK

zSortedItems