get_button_action

lsst.ts.m2gui.get_button_action(tool_bar: QToolBar, name: str) QAction

Get the button widget of action in tool bar.

Parameters

tool_barPySide6.QtWidgets.QToolBar

Tool bar.

namestr

Action name.

Returns

PySide6.QtWidgets.QAction or None

Button widget of the action. None if does not exist.