Nautilus.Column

g GObject.Object GObject.Object Nautilus.Column Nautilus.Column GObject.Object->Nautilus.Column

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name, attribute, label, description)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

attribute

str

r/w

The attribute name to display

attribute-q

int

r

The attribute name to display, in quark form

default-sort-order

int

r/w

Default sort order

description

str

r/w

A user-visible description of the column

label

str

r/w

Label to display in the column

name

str

r/w/co

Name of the column

visible

bool

r/w

xalign

float

r/w

The x-alignment of the column

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Nautilus.Column(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Nautilus.ColumnClass

List view column descriptor object.

NautilusColumn is an object that describes a column in the file manager list view. Extensions can provide NautilusColumn by registering a [iface`ColumnProvider`] and returning them from [method`ColumnProvider`.get_columns], which will be called by the main application when creating a view.

classmethod new(name, attribute, label, description)
Parameters:
  • name (str) – identifier of the column

  • attribute (str) – the file attribute to be displayed in the column

  • label (str) – the user-visible label for the column

  • description (str) – a user-visible description of the column

Returns:

a new Nautilus.Column

Return type:

Nautilus.Column

Creates a new [class`Column`] object.

Property Details

Nautilus.Column.props.attribute
Name:

attribute

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The file attribute to be displayed in the column.

Nautilus.Column.props.attribute_q
Name:

attribute-q

Type:

int

Default Value:

0

Flags:

READABLE

The attribute name to display, in quark form

Nautilus.Column.props.default_sort_order
Name:

default-sort-order

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Actually meant to store the enum values of GtkSortType, but we don’t want extensions to depend on GTK. Also, this is for internal consumption only.

Nautilus.Column.props.description
Name:

description

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The user-visible description of the column.

Nautilus.Column.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The label to display in the column.

Nautilus.Column.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The identifier for the column.

Nautilus.Column.props.visible
Name:

visible

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether to show the Nautilus.Column in a ColumnChooser. This is not meant to be used by extensions. The value may be changed over the life of the Nautilus.Column.

Nautilus.Column.props.xalign
Name:

xalign

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x-alignment of the column.