def on_plugin_selected(self):
        """ Gets called when a plugin got selected in the plugin list """
        selected_item = self.lst_plugins.selectedItems()
        if not selected_item:
            self._current_plugin = None
            self._current_plugin_instance = None
            self._set_settings_visible(False)
            return
        assert len(selected_item) == 1
        selected_item = selected_item[0]
        self._current_plugin = selected_item._plugin_id
        self._current_plugin_instance = self._plugin_mgr.instances[self._current_plugin]
        assert (self._current_plugin_instance is not None)
        self._render_current_plugin()
        self._set_settings_visible(True)
 Gets called when a plugin got selected in the plugin list 
metadrive/render_pipeline/toolkit/plugin_configurator/main.py