Skip to content

Gtk.Requisition

record (struct)

Represents the desired size of a widget.

See GtkWidget’s geometry management section for more information.

Constructors

new

@classmethod
def new(cls) -> Requisition

Allocates a new GtkRequisition.

The struct is initialized to zero.

Methods

copy

def copy(self) -> Requisition

Copies a GtkRequisition.

free

def free(self) -> None

Frees a GtkRequisition.

Properties

width

width: int  # read/write

height

height: int  # read/write