Page Contents

This Page

ActionGroup

class enaml.widgets.action_group.ActionGroup(parent=None, **kwargs)[source]

Bases: enaml.core.messenger.Messenger

A non visible widget used to group actions.

An action group can be used in a MenuBar or a ToolBar to group a related set of Actions and apply common operations to the set. The primary use of an action group is to make any checkable actions in the group mutually exclusive.

exclusive = None

Whether or not the actions in this group are exclusive.

enabled = None

Whether or not the actions in this group are enabled.

visible = None

Whether or not the actions in this group are visible.

actions = None

A read only property which returns the actions for this group.

snapshot()[source]

Returns the snapshot dict for the ActionGroup.

bind()[source]

Binds the change handlers for the ActionGroup.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_action_group.QtActionGroup

class enaml.qt.qt_action_group.QtActionGroup(object_id, parent, session)[source]

Bases: enaml.qt.qt_object.QtObject

A Qt implementation of an Enaml ActionGroup.

create_widget(parent, tree)[source]

Create the underlying action group widget.

create(tree)[source]

Create and initialize the underlying control.

init_layout()[source]

Initialize the layout for the underlying control.

child_removed(child)[source]

Handle the child removed event for a QtActionGroup.

child_added(child)[source]

Handle the child added event for a QtActionGroup.

actions()[source]

Get the QAction children for this action group.

Returns:result (list) – The list of QAction instances which are children of this action group. Unlike the list returned by the actions method of the QActionGroup, the children in this list will have the correct order.
on_action_set_exclusive(content)[source]

Handle the ‘set_exclusive’ action from the Enaml widget.

on_action_set_enabled(content)[source]

Handle the ‘set_enabled’ action from the Enaml widget.

on_action_set_visible(content)[source]

Handle the ‘set_visible’ action from the Enaml widget.

set_exclusive(exclusive)[source]

Set the exclusive state of the underlying control.

set_enabled(enabled)[source]

Set the enabled state of the underlying control.

set_visible(visible)[source]

Set the visible state of the underlying control.

Wx

Inheritance diagram of enaml.wx.wx_action_group.WxActionGroup

class enaml.wx.wx_action_group.WxActionGroup(object_id, parent, session)[source]

Bases: enaml.wx.wx_object.WxObject

A Wx implementation of an Enaml ActionGroup.

create_widget(parent, tree)[source]

Create the underlying action group widget.

create(tree)[source]

Create and initialize the underlying control.

init_layout()[source]

Initialize the layout for the underlying control.

child_removed(child)[source]

Handle the child removed event for a WxActionGroup.

child_added(child)[source]

Handle the child added event for a WxActionGroup.

actions()[source]

Get the WxAction children for this action group.

Returns:result (list) – The list of wxAction instances which are children of this action group. Unlike the list returned by the GetActions method of the wxActionGroup, the children in this list will have the correct order.
on_action_set_exclusive(content)[source]

Handle the ‘set_exclusive’ action from the Enaml widget.

on_action_set_enabled(content)[source]

Handle the ‘set_enabled’ action from the Enaml widget.

on_action_set_visible(content)[source]

Handle the ‘set_visible’ action from the Enaml widget.

set_exclusive(exclusive)[source]

Set the exclusive state of the underlying control.

set_enabled(enabled)[source]

Set the enabled state of the underlying control.

set_visible(visible)[source]

Set the visible state of the underlying control.