viewport_at#

Workspace.viewport_at(row: int, column: int) → Viewport#

Return the viewport at a grid position.

Parameters:
rowint

Zero-based row index, from top to bottom.

columnint

Zero-based column index, from left to right.

Returns:
Viewport

Viewport occupying the requested cell.

Examples

Get the viewport in the second row of the third column.

>>> viewport = workspace.viewport_at(row=1, column=2)