Skip to content

Gtk.SignalAction

class — extends ShortcutAction

Emits a signal on a widget.

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

Constructors

new

@classmethod
def new(cls, signal_name: str) -> 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.

Parameters:

  • signal_name — name of the signal to emit

Methods

get_signal_name

def get_signal_name(self) -> str

Returns the name of the signal that will be emitted.

Properties

signal_name

signal_name: str  # read/write

The name of the signal to emit.