Public Member Functions | Private Attributes | List of all members
rqt_robot_dashboard.menu_dash_widget.MenuDashWidget Class Reference
Inheritance diagram for rqt_robot_dashboard.menu_dash_widget.MenuDashWidget:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, name, icons=None, clicked_icons=None, icon_paths=[])
 
def add_action (self, name, callback)
 
def add_separator (self)
 

Private Attributes

 _menu
 

Detailed Description

A widget which displays a pop-up menu when clicked

:param name: The name to give this widget.
:type name: str
:param icon: The icon to display in this widgets button.
:type icon: str

Definition at line 37 of file menu_dash_widget.py.

Constructor & Destructor Documentation

def rqt_robot_dashboard.menu_dash_widget.MenuDashWidget.__init__ (   self,
  name,
  icons = None,
  clicked_icons = None,
  icon_paths = [] 
)

Definition at line 46 of file menu_dash_widget.py.

Member Function Documentation

def rqt_robot_dashboard.menu_dash_widget.MenuDashWidget.add_action (   self,
  name,
  callback 
)
Add an action to the menu, and return the newly created action.

:param name: The name of the action.
:type name: str
:param callback: Function to be called when this item is pressed.
:type callback: callable

Definition at line 66 of file menu_dash_widget.py.

def rqt_robot_dashboard.menu_dash_widget.MenuDashWidget.add_separator (   self)

Definition at line 63 of file menu_dash_widget.py.

Member Data Documentation

rqt_robot_dashboard.menu_dash_widget.MenuDashWidget._menu
private

Definition at line 57 of file menu_dash_widget.py.


The documentation for this class was generated from the following file:


rqt_robot_dashboard
Author(s): Ze'ev Klapow
autogenerated on Fri Jun 7 2019 21:55:03