get_button_action

lsst.ts.m2gui.get_button_action(tool_bar, name)

Get the button widget of action in tool bar.

Parameters:
tool_barPySide2.QtWidgets.QToolBar

Tool bar.

namestr

Action name.

Returns:
PySide2.QtWidgets.QAction or None

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