placement_of#
- WorkspaceLayout.placement_of(viewport: Viewport | str) ViewportPlacement#
Return the placement of a viewport.
- Parameters:
- Returns:
ViewportPlacementPlacement of the requested viewport.
- Raises:
KeyErrorIf the viewport is not part of this layout.
Examples
Get the grid position of a viewport.
>>> placement = workspace.layout.placement_of(viewport) >>> placement.row, placement.column (0, 1)