carla_scenario_editor.py
def onClosePlugin(self):
        """Cleanup necessary items here when plugin dockwidget is closed"""
        self.pluginIsActive = False
        if self._plugin_is_active_vehicles:
            self._dockwidget_vehicles.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_vehicles = False

        if self._plugin_is_active_pedestrians:
            self._dockwidget_pedestrians.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_pedestrians = False

        if self._plugin_is_active_environment:
            self._dockwidget_environment.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_environment = False

        if self._plugin_is_active_maneuvers:
            self._dockwidget_maneuvers.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_maneuvers = False

        if self._plugin_is_active_props:
            self._dockwidget_props.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_props = False

        if self._plugin_is_active_parameters:
            self._dockwidget_parameters.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_parameters = False
Cleanup necessary items here when plugin dockwidget is closed
Cleanup necessary items here when plugin dockwidget is closed
Cleanup necessary items here when plugin dockwidget is closed
def onClosePlugin(self):
        self.pluginIsActive = False
        if self._plugin_is_active_vehicles:
            self._dockwidget_vehicles.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_vehicles = False
        if self._plugin_is_active_pedestrians:
            self._dockwidget_pedestrians.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_pedestrians = False
        if self._plugin_is_active_environment:
            self._dockwidget_environment.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_environment = False
        if self._plugin_is_active_maneuvers:
            self._dockwidget_maneuvers.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_maneuvers = False
        if self._plugin_is_active_props:
            self._dockwidget_props.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_props = False
        if self._plugin_is_active_parameters:
            self._dockwidget_parameters.closingPlugin.disconnect(self.onClosePlugin)
            self._plugin_is_active_parameters = False
def onClosePlugin ( self ) : self . pluginIsActive = False if self . _plugin_is_active_vehicles : self . _dockwidget_vehicles . closingPlugin . disconnect ( self . onClosePlugin ) self . _plugin_is_active_vehicles = False if self . _plugin_is_active_pedestrians : self . _dockwidget_pedestrians . closingPlugin . disconnect ( self . onClosePlugin ) self . _plugin_is_active_pedestrians = False if self . _plugin_is_active_environment : self . _dockwidget_environment . closingPlugin . disconnect ( self . onClosePlugin ) self . _plugin_is_active_environment = False if self . _plugin_is_active_maneuvers : self . _dockwidget_maneuvers . closingPlugin . disconnect ( self . onClosePlugin ) self . _plugin_is_active_maneuvers = False if self . _plugin_is_active_props : self . _dockwidget_props . closingPlugin . disconnect ( self . onClosePlugin ) self . _plugin_is_active_props = False if self . _plugin_is_active_parameters : self . _dockwidget_parameters . closingPlugin . disconnect ( self . onClosePlugin ) self . _plugin_is_active_parameters = False
Cleanup necessary items here when plugin dockwidget is closed
Cleanup necessary items here when plugin dockwidget is closed
"""Cleanup necessary items here when plugin dockwidget is closed"""
self