Nautilus.PropertiesModel

g GObject.Object GObject.Object Nautilus.PropertiesModel Nautilus.PropertiesModel GObject.Object->Nautilus.PropertiesModel

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (title, model)

get_model ()

get_title ()

set_title (title)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

model

Gio.ListModel

r/w/co

title

str

r/w

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Nautilus.PropertiesModel(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Nautilus.PropertiesModelClass

A model to implement custom file Properties.

NautilusPropertiesModel is an model that describes a set of file properties. Extensions can provide NautilusPropertiesModel objects by registering a [iface`PropertiesModelProvider`] and returning them from [method`PropertiesModelProvider`.get_models], which will be called by the main application when creating file properties.

classmethod new(title, model)
Parameters:
  • title (str) – the user-visible name for the set of properties in this model

  • model (Gio.ListModel) – a [iface`Gio`.ListModel] containing #NautilusPropertyItem objects.

Returns:

a new Nautilus.PropertiesModel

Return type:

Nautilus.PropertiesModel

Create a new NautilusPropertiesModel.

get_model()
Returns:

a [iface`Gio`.ListModel] containing [class`PropertiesItem`].

Return type:

Gio.ListModel

Gets the properties items provided by this model.

get_title()
Returns:

the title of this Nautilus.PropertiesModel

Return type:

str

Get the user-visible title.

set_title(title)
Parameters:

title (str) – the new title

Set a user-visible name for the set of properties in this model.

It should work both as a window title and as a boxed list row. Exactly where it is shown in the UI may vary in the future.

Property Details

Nautilus.PropertiesModel.props.model
Name:

model

Type:

Gio.ListModel

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The item model.

Nautilus.PropertiesModel.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The user visible title