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:
- 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)
- name
- Returns:
- button
PySide2.QtWidgets.QPushButton
button.
- button