Class: QgsMapLayerActionContext¶
- class qgis.gui.QgsMapLayerActionContext¶
Bases:
sip.wrapper
Encapsulates the context in which a
QgsMapLayerAction
action is executed.New in version 3.30:
Methods
Returns the attribute dialog associated with the action's execution.
Returns the message bar associated with the action's execution.
Sets the attribute
dialog
associated with the action's execution.Sets the message
bar
associated with the action's execution.- attributeDialog(self) QgsAttributeDialog ¶
Returns the attribute dialog associated with the action’s execution.
May be
None
if the action is not being executed from an attribute dialog.See also
- Return type:
- messageBar(self) QgsMessageBar ¶
Returns the message bar associated with the action’s execution.
May be
None
.See also
- Return type:
- setAttributeDialog(self, dialog: QgsAttributeDialog)¶
Sets the attribute
dialog
associated with the action’s execution.See also
- Parameters:
dialog (QgsAttributeDialog) –
- setMessageBar(self, bar: QgsMessageBar)¶
Sets the message
bar
associated with the action’s execution.See also
- Parameters:
bar (QgsMessageBar) –