Public Member Functions | |
def | __init__ |
def | state |
def | update_state |
Public Attributes | |
icon_helper | |
name | |
Static Public Attributes | |
tuple | state_changed = Signal(int) |
Private Member Functions | |
def | _pressed |
def | _released |
def | _update_state |
Private Attributes | |
__state | |
_clicked_icons | |
_icons |
This is the base class for all widgets. It provides state and icon switching support as well as convenience functions for creating icons. :raises IndexError: if ``icons`` is not a list of lists of strings :param name: name of the object :type name: str :param icons: A list of lists of strings to create icons for the states of this button.\ If only one is supplied then ok, warn, error, stale icons will be created with overlays :type icons: list :param clicked_icons: A list of clicked state icons. len must equal icons :type clicked_icons: list :param suppress_overlays: if false and there is only one icon path supplied :type suppress_overlays: bool :param icon_paths: list of lists of package and subdirectory in the form\ ['package name', 'subdirectory'] example ['rqt_pr2_dashboard', 'images/svg'] :type icon_paths: list of lists of strings
Definition at line 42 of file icon_tool_button.py.
def rqt_robot_dashboard.icon_tool_button.IconToolButton.__init__ | ( | self, | |
name, | |||
icons, | |||
clicked_icons = None , |
|||
suppress_overlays = False , |
|||
icon_paths = None |
|||
) |
Definition at line 66 of file icon_tool_button.py.
def rqt_robot_dashboard.icon_tool_button.IconToolButton._pressed | ( | self | ) | [private] |
Definition at line 121 of file icon_tool_button.py.
def rqt_robot_dashboard.icon_tool_button.IconToolButton._released | ( | self | ) | [private] |
Definition at line 124 of file icon_tool_button.py.
def rqt_robot_dashboard.icon_tool_button.IconToolButton._update_state | ( | self, | |
state | |||
) | [private] |
Definition at line 115 of file icon_tool_button.py.
Read-only accessor for the widgets current state.
Definition at line 109 of file icon_tool_button.py.
def rqt_robot_dashboard.icon_tool_button.IconToolButton.update_state | ( | self, | |
state | |||
) |
Set the state of this button. This will also update the icon for the button based on the ``self._icons`` list :raises IndexError: If state is not a proper index to ``self._icons`` :param state: The state to set. :type state: int
Definition at line 92 of file icon_tool_button.py.
Definition at line 66 of file icon_tool_button.py.
Definition at line 66 of file icon_tool_button.py.
Definition at line 66 of file icon_tool_button.py.
Definition at line 66 of file icon_tool_button.py.
Definition at line 66 of file icon_tool_button.py.
tuple rqt_robot_dashboard::icon_tool_button.IconToolButton::state_changed = Signal(int) [static] |
Definition at line 64 of file icon_tool_button.py.