Gtk.SignalAction

g GObject.Object GObject.Object Gtk.ShortcutAction Gtk.ShortcutAction GObject.Object->Gtk.ShortcutAction Gtk.SignalAction Gtk.SignalAction Gtk.ShortcutAction->Gtk.SignalAction

Subclasses:

None

Methods

Inherited:

Gtk.ShortcutAction (4), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (signal_name)

get_signal_name ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

signal-name

str

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gtk.SignalAction(**kwargs)
Bases:

Gtk.ShortcutAction

Abstract:

No

Structure:

Gtk.SignalActionClass

A ``GtkShortcut``Action that emits a signal.

Signals that are used in this way are referred to as keybinding signals, and they are expected to be defined with the GObject.SignalFlags.ACTION flag.

classmethod new(signal_name)[source]
Parameters:

signal_name (str) – name of the signal to emit

Returns:

a new GtkShortcutAction

Return type:

Gtk.SignalAction

Creates an action that when activated, emits the given action signal on the provided widget.

It will also unpack the args into arguments passed to the signal.

get_signal_name()[source]
Returns:

the name of the signal to emit

Return type:

str

Returns the name of the signal that will be emitted.

Property Details

Gtk.SignalAction.props.signal_name
Name:

signal-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The name of the signal to emit.