set_button

lsst.ts.m2gui.set_button(name: str, callback: Optional[Callable], *args: Any, is_checkable: bool = False, is_indicator: bool = False, is_adjust_size: bool = False, tool_tip: str | None = None) QPushButton

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

buttonPySide6.QtWidgets.QPushButton

button.