[go: up one dir, main page]

Skip to content

textual.coordinate

A class to store a coordinate, used by the DataTable.

Coordinate

Bases: NamedTuple

An object representing a row/column coordinate within a grid.

column instance-attribute

column

The column of the coordinate within a grid.

row instance-attribute

row

The row of the coordinate within a grid.

down

down()

Get the coordinate below.

Returns:

Type Description
Coordinate

The coordinate below.

left

left()

Get the coordinate to the left.

Returns:

Type Description
Coordinate

The coordinate to the left.

right

right()

Get the coordinate to the right.

Returns:

Type Description
Coordinate

The coordinate to the right.

up

up()

Get the coordinate above.

Returns:

Type Description
Coordinate

The coordinate above.