Skip to content

Gtk.CallbackAction

class — extends ShortcutAction

Invokes a callback.

Constructors

new

@classmethod
def new(cls, callback: ShortcutFunc) -> CallbackAction

Create a custom action that calls the given callback when activated.

Parameters:

  • callback — the callback to call when the action is activated