osc_generator/osc_generator.py
def edit_environment(self):
        """
        Adds "Edit Environment" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        """
        # Add temporary scratch layer to QGIS (if not yet created)
        if self._root_layer.findGroup("OpenSCENARIO") is None:
            self._root_layer.addGroup("OpenSCENARIO")

        # Load plugin
        if not self._plugin_is_active_environment:
            self._plugin_is_active_environment = True

            if self._dockwidget_environment is None:
                self._dockwidget_environment = EditEnvironmentDockWidget()

            self._dockwidget_environment.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.BottomDockWidgetArea, self._dockwidget_environment)
            self._dockwidget_environment.show()

        Adds "Edit Environment" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        
Adds "Edit Environment" dock widget.
Creates OpenSCENARIO layer group if it does not exist.
Adds " Edit Environment " dock widget . Creates OpenSCENARIO layer group if it does not exist .
def edit_environment(self):
        if self._root_layer.findGroup("OpenSCENARIO") is None:
            self._root_layer.addGroup("OpenSCENARIO")
        if not self._plugin_is_active_environment:
            self._plugin_is_active_environment = True
            if self._dockwidget_environment is None:
                self._dockwidget_environment = EditEnvironmentDockWidget()
            self._dockwidget_environment.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.BottomDockWidgetArea, self._dockwidget_environment)
            self._dockwidget_environment.show()
def edit_environment ( self ) : if self . _root_layer . findGroup ( "OpenSCENARIO" ) is None : self . _root_layer . addGroup ( "OpenSCENARIO" ) if not self . _plugin_is_active_environment : self . _plugin_is_active_environment = True if self . _dockwidget_environment is None : self . _dockwidget_environment = EditEnvironmentDockWidget ( ) self . _dockwidget_environment . closingPlugin . connect ( self . onClosePlugin ) self . iface . addDockWidget ( Qt . BottomDockWidgetArea , self . _dockwidget_environment ) self . _dockwidget_environment . show ( )
Adds "Edit Environment" dock widget.
Adds " Edit Environment " dock widget .
"""
        Adds "Edit Environment" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        """ # Add temporary scratch layer to QGIS (if not yet created) # Load plugin
self