Skip to content

Gtk.GridLayoutChild

class — extends LayoutChild

GtkLayoutChild subclass for children in a GtkGridLayout.

Methods

get_column

def get_column(self) -> int

Retrieves the column number to which child attaches its left side.

get_column_span

def get_column_span(self) -> int

Retrieves the number of columns that child spans to.

get_row

def get_row(self) -> int

Retrieves the row number to which child attaches its top side.

get_row_span

def get_row_span(self) -> int

Retrieves the number of rows that child spans to.

set_column

def set_column(self, column: int) -> None

Sets the column number to attach the left side of child.

Parameters:

  • column — the attach point for child

set_column_span

def set_column_span(self, span: int) -> None

Sets the number of columns child spans to.

Parameters:

  • span — the span of child

set_row

def set_row(self, row: int) -> None

Sets the row to place child in.

Parameters:

  • row — the row for child

set_row_span

def set_row_span(self, span: int) -> None

Sets the number of rows child spans to.

Parameters:

  • span — the span of child

Properties

column

column: int  # read/write

The column to place the child in.

column_span

column_span: int  # read/write

The number of columns the child spans to.

row

row: int  # read/write

The row to place the child in.

row_span

row_span: int  # read/write

The number of rows the child spans to.