ActionGroup (hwx.gui)#

class ActionGroup(parent=None, name='', **kwds)#

Bases: object

A grouping of Actions to create a cascading menu.

ActionGroups are modeled after Qts ActionGroup class, refer to the Qt documentation for more information.

Attribute Table#

Name

Type

children

property

exclusive

property

name

property

text

property

visible

property

Method Table#

Name

Description

destroy (self)

Deletes this and all its children.

destroy()#

Deletes this and all its children.

Warning, make sure to remove the action from the ui before destroying or this will crash!

property name#

Unique identifier across profiles.

This is only settable in the constructor.

property exclusive#

Only one child SpriteAction toggle is on at a time.

Toggling any child of this group turns the other children off.

property visible#

The visibility of the ActionGroup.

Setting to False will visually remove this from the menu/toolbar.

property children#

Returns the list of Actions inside the Group.

property text#

Set the label to be displayed at the bottom of the group.