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()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:
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()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🌶️
|
|
|
|
|
|
|
|
|
|
|