<filename>src/rqt_joint_trajectory_plot/plugin.py
#!/usr/bin/env python
from rqt_gui_py.plugin import Plugin
from .main_widget import MainWidget


class JointTrajectoryPlot(Plugin):
    def __init__(self, context):
        super(JointTrajectoryPlot, self).__init__(context)
        self.context = context
        self.setObjectName('JointTrajctoryPlot')
        # Create a MainWidget
        self.main_widget = MainWidget()
        context.add_widget(self.main_widget)

    def save_settings(self, plugin_settings, instance_settings):
        pass

    def restore_settings(self, plugin_settings, instance_settings):
        pass

    def trigger_configuration(self):
        pass

    def shutdown_plugin(self):
        self.main_widget.close()

<filename>src/rqt_joint_trajectory_plot/plugin.py
#!/usr/bin/env python
from rqt_gui_py.plugin import Plugin
from .main_widget import MainWidget


class JointTrajectoryPlot(Plugin):
    def __init__(self, context):
        super(JointTrajectoryPlot, self).__init__(context)
        self.context = context
        self.setObjectName('JointTrajctoryPlot')
        # Create a MainWidget
        self.main_widget = MainWidget()
        context.add_widget(self.main_widget)

    def save_settings(self, plugin_settings, instance_settings):
        pass

    def restore_settings(self, plugin_settings, instance_settings):
        pass

    def trigger_configuration(self):
        pass

    def shutdown_plugin(self):
        self.main_widget.close()

#!/usr/bin/env python # Create a MainWidget