A class dedicated to the creation, deletion and modification of groups
of actions.
|
|
|
connectAction(self,
action,
slot)
Connects an action to a slot |
|
|
|
getAction(self,
action_name)
Gets an action from the action name |
|
|
|
clearActions(self)
Clears all actions in the factory |
|
|
|
removeAction(self,
action_name)
Removes an action from the stored actions based on action name |
|
|
|
createActions(self,
action_params,
action_order=None,
parent=None)
Creates actions. |
|
|
|
addActions(self,
action_params,
action_order=None,
parent=None)
Add actions to the current action list |
|
|
|
setActions(self,
action_params,
action_order=None,
parent=None)
Replace current acction with new actions |
|
|
|
getMenu(self)
Return self.actions list as a QtWidgets.QMenu |
|
|
|
getMenuBar(self)
Return self.actions list as a QtWidgets.QMenuBar |
|
|
|
getToolBar(self,
title=None,
movable=False)
Return self.actions list as a QtWidgets.QToolBar |
|
|
|
addContext(self,
parent=None)
Add a context menu to parent. |
|
|
|
addSubMenu(self,
action_params,
action_order=None,
parent=None,
add_separator=False,
text=None,
icon=None)
Adds a submenu to an action and appends the action to
self.actions . |
|
|