Dazzle.ListBox

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Dazzle.ListBox Dazzle.ListBox GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.ListBox Gtk.ListBox Gtk.Container->Gtk.ListBox Gtk.ListBox->Dazzle.ListBox Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.ListBox (28), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (row_type, property_name)

get_model ()

get_property_name ()

get_row_type ()

set_model (model)

set_recycle_max (recycle_max)

Virtual Methods

Inherited:

Gtk.ListBox (8), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.ListBox (2), Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

property-name

str

r/w/co

The property in which to assign the model item

row-type

GObject.GType

r/w/co

The Gtk.ListBoxRow or subclass type to instantiate

row-type-name

str

w/co

The name of the GObject.GType as a string

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.ListBox (8), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.ListBox (8), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.ListBox

r

Class Details

class Dazzle.ListBox(**kwargs)
Bases:

Gtk.ListBox

Abstract:

No

Structure:

Dazzle.ListBoxClass

classmethod new(row_type, property_name)
Parameters:
Return type:

Gtk.Widget

get_model()
Returns:

A Gio.ListModel or None.

Return type:

Gio.ListModel or None

get_property_name()
Return type:

str

get_row_type()
Return type:

GObject.GType

set_model(model)
Parameters:

model (Gio.ListModel) –

set_recycle_max(recycle_max)
Parameters:

recycle_max (int) – max number of rows to cache

Sets the max number of rows to cache for reuse. Set to 0 to return to the default.

New in version 3.28.

Property Details

Dazzle.ListBox.props.property_name
Name:

property-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The property in which to assign the model item

Dazzle.ListBox.props.row_type
Name:

row-type

Type:

GObject.GType

Default Value:

<GType GtkListBoxRow>

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Gtk.ListBoxRow or subclass type to instantiate

Dazzle.ListBox.props.row_type_name
Name:

row-type-name

Type:

str

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

The name of the GObject.GType as a string