button.py
Go to the documentation of this file.
00001 from rqt_gui_py.plugin import Plugin
00002 from jsk_rqt_plugins.button_general import ServiceButtonGeneralWidget
00003 
00004 class ServiceButtons(Plugin):
00005     """
00006     rqt class to provide multiple buttons
00007     """
00008     def __init__(self, context):
00009         super(ServiceButtons, self).__init__(context)
00010         self.setObjectName("ServiceButtons")
00011         self._widget = ServiceButtonWidget()
00012         context.add_widget(self._widget)
00013     def save_settings(self, plugin_settings, instance_settings):
00014         self._widget.save_settings(plugin_settings, instance_settings)
00015     def restore_settings(self, plugin_settings, instance_settings):
00016         self._widget.restore_settings(plugin_settings, instance_settings)
00017     def trigger_configuration(self):
00018         self._widget.trigger_configuration()
00019 
00020 class ServiceButtonWidget(ServiceButtonGeneralWidget):
00021     """
00022     Qt widget to visualize multiple buttons
00023     """
00024     def __init__(self):
00025         super(ServiceButtonWidget, self).__init__(button_type = "push")


jsk_rqt_plugins
Author(s):
autogenerated on Wed May 1 2019 02:40:16