radio_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 ServiceRadioButtons(Plugin):
00005     """
00006     rqt class to provide multiple buttons
00007     """
00008     def __init__(self, context):
00009         super(ServiceRadioButtons, self).__init__(context)
00010         self.setObjectName("ServiceRadioButtons")
00011         self._widget = ServiceRadioButtonWidget()
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 ServiceRadioButtonWidget(ServiceButtonGeneralWidget):
00021     """
00022     Qt widget to visualize multiple radio buttons
00023     """
00024     def __init__(self):
00025         super(ServiceRadioButtonWidget, self).__init__(button_type = "radio")


jsk_rqt_plugins
Author(s):
autogenerated on Sun Sep 13 2015 22:29:48