yasuki_gui.services.actions.Action#

class Action(id: str, label: str, hotkey: str | None = None, when: collections.abc.Callable[[yasuki_gui.services.actions.HasView, yasuki_gui.services.actions.ActionContext], bool] = <function Action.<lambda> at 0x76473a853880>, run: collections.abc.Callable[[yasuki_gui.services.actions.HasView, yasuki_gui.services.actions.ActionContext], None] = <function Action.<lambda> at 0x76473a853920>, group: str = 'default')[source]#

Methods

Action.__init__(id, label[, hotkey, when, ...])

Action.run(c)

Action.when(c)

Attributes

group

hotkey

id

label