set_button

lsst.ts.m2gui.set_button(name, callback, *args, is_checkable=False, is_indicator=False, is_adjust_size=False, tool_tip=None)

Set the button.

Parameters:
namestr

Button name.

callbackfunc or None

Callback function object to use in future partial calls. Put None if you do not want to have the callback function connected.

*argsargs

Tuple of callback arguments to future partial calls. This is only meaningful if the callback is not None.

is_checkablebool, optional

The button is checkable or not. (the default is False)

is_indicatorbool, optional

The button is indicator or not. Put the callback to be None if the value is True. (the default is False)

is_adjust_sizebool, optional

Adjust the size of button or not. (the default is False)

tool_tipstr or None, optional

Tool tip. If None, there will be no tip. (the default is None)

Returns:
buttonPySide2.QtWidgets.QPushButton

button.