PolkitAgent.TextListener

g GObject.GInterface GObject.GInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable GObject.Object GObject.Object PolkitAgent.Listener PolkitAgent.Listener GObject.Object->PolkitAgent.Listener PolkitAgent.TextListener PolkitAgent.TextListener Gio.Initable->PolkitAgent.TextListener PolkitAgent.Listener->PolkitAgent.TextListener

Subclasses:

None

Methods

Inherited:

PolkitAgent.Listener (5), GObject.Object (37), Gio.Initable (2)

Structs:

GObject.ObjectClass (5)

class

new (cancellable)

Virtual Methods

Inherited:

PolkitAgent.Listener (2), GObject.Object (7), Gio.Initable (1)

Properties

Name

Type

Flags

Short Description

delay

int

r/w/co

use-alternate-buffer

bool

r/w/co

use-color

bool

r/w/co

Signals

Inherited:

GObject.Object (1)

Name

Short Description

tty-attrs-changed

Fields

Inherited:

GObject.Object (1)

Class Details

class PolkitAgent.TextListener(**kwargs)
Bases:

PolkitAgent.Listener, Gio.Initable

Abstract:

No

PolkitAgent.TextListener is an PolkitAgent.Listener implementation that interacts with the user using a textual interface.

classmethod new(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

A PolkitAgent.TextListener or None if error is set. Free with GObject.Object.unref() when done with it.

Return type:

PolkitAgent.Listener

Creates a new PolkitAgent.TextListener for authenticating the user via an textual interface on the controlling terminal (e.g. /dev/tty). This can fail if e.g. the current process has no controlling terminal.

Signal Details

PolkitAgent.TextListener.signals.tty_attrs_changed(text_listener, object)
Signal Name:

tty-attrs-changed

Flags:

RUN_LAST, NO_RECURSE, NO_HOOKS

Parameters:

Property Details

PolkitAgent.TextListener.props.delay
Name:

delay

Type:

int

Default Value:

1

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

PolkitAgent.TextListener.props.use_alternate_buffer
Name:

use-alternate-buffer

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

PolkitAgent.TextListener.props.use_color
Name:

use-color

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY