class _Cell:
_Cell objects are aggregated to _Cells._list
, which itself is composed to Grid.cells
A _Cell has an item property holding an object together with coordinates and span values.
Method | __init__ |
Example |
Instance Variable | item |
must be None or _Gap , or Grid , or QSpacerItem, QLayout, QWidget |
Instance Variable | y |
int y coordinate |
Instance Variable | x |
int x coordinate |
Instance Variable | y_span |
int y direction span |
Instance Variable | x_span |
int x direction span |
Example
cell = _Cell( item=_Gap(...), y=0, x=1, y_span=2, x_span=2 )
cell = _Cell( _Grid(...), 0,1, y_span=2, x_span=2 )
cell = _Cell( *QSpacerItem*, 0,1, y_span=2, x_span=2 )
cell = _Cell( *QLayout*, 0,1 )
cell = _Cell( *QWidget*, 0,1 )
####
grid.cells.add( cell )
Parameters | item | None or _Gap , or Grid , or QSpacerItem, QLayout, QWidget |
y | int y coordinate | |
x | int x coordinate | |
y_span | int y direction span | |
x_span | int x direction span |