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¶
- name
str
Button name.
- callback
func
or None Callback function object to use in future partial calls. Put None if you do not want to have the callback function connected.
- *args
args
Tuple of callback arguments to future partial calls. This is only meaningful if the callback is not None.
- is_checkable
bool
, optional The button is checkable or not. (the default is False)
- is_indicator
bool
, optional The button is indicator or not. Put the callback to be None if the value is True. (the default is False)
- is_adjust_size
bool
, optional Adjust the size of button or not. (the default is False)
- tool_tip
str
or None, optional Tool tip. If None, there will be no tip. (the default is None)
Returns¶
- button
PySide6.QtWidgets.QPushButton
button.
- name