Public Member Functions | Private Attributes | List of all members
airbus_cobot_gui.widget.widget_installer.WidgetInstaller Class Reference

Base class for install widget. More...

Public Member Functions

def __init__
 The constructor. More...
 
def get_widget
 Get widget user interface. More...
 
def install
 Install widget configuration. More...
 
def set_widget
 Sets content user interface. More...
 

Private Attributes

 _description
 
 _label
 
 _restriction
 
 _user
 
 _user_change_cb
 
 _widget
 

Detailed Description

Base class for install widget.

Interface for Python widgets which use the ROS client library.
User-defined plugins may either subclass `airbus_cobot_gui::Widget` or according to duck typing implement only the needed methods.
A widget must not call rospy.init_node() as this is performed once by the framework.
The name of the ROS node consists of the prefix "airbus_cobot_gui_py_node_" and the process id.

Definition at line 30 of file widget_installer.py.

Constructor & Destructor Documentation

def airbus_cobot_gui.widget.widget_installer.WidgetInstaller.__init__ (   self,
  user_changed_cb 
)

The constructor.

Definition at line 39 of file widget_installer.py.

Member Function Documentation

def airbus_cobot_gui.widget.widget_installer.WidgetInstaller.get_widget (   self)

Get widget user interface.

Returns
widget: widget ui. widget: QWidget.

Definition at line 65 of file widget_installer.py.

def airbus_cobot_gui.widget.widget_installer.WidgetInstaller.install (   self,
  widget_descriptors = {} 
)

Install widget configuration.

Parameters
widget_descriptorswidget descriptors. widget_descriptors: dict{strings}.

Definition at line 48 of file widget_installer.py.

def airbus_cobot_gui.widget.widget_installer.WidgetInstaller.set_widget (   self,
  widget 
)

Sets content user interface.

Parameters
window_uiuser interface object. window_ui: QObject.

Definition at line 58 of file widget_installer.py.

Member Data Documentation

airbus_cobot_gui.widget.widget_installer.WidgetInstaller._description
private

Definition at line 42 of file widget_installer.py.

airbus_cobot_gui.widget.widget_installer.WidgetInstaller._label
private

Definition at line 41 of file widget_installer.py.

airbus_cobot_gui.widget.widget_installer.WidgetInstaller._restriction
private

Definition at line 43 of file widget_installer.py.

airbus_cobot_gui.widget.widget_installer.WidgetInstaller._user
private

Definition at line 44 of file widget_installer.py.

airbus_cobot_gui.widget.widget_installer.WidgetInstaller._user_change_cb
private

Definition at line 45 of file widget_installer.py.

airbus_cobot_gui.widget.widget_installer.WidgetInstaller._widget
private

Definition at line 46 of file widget_installer.py.


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


airbus_cobot_gui
Author(s):
autogenerated on Thu Dec 17 2015 11:42:05