osc_generator/osc_generator.py
def add_props(self):
        """
        Adds "Add Static Objects" 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_props:
            self._plugin_is_active_props = True

            if self._dockwidget_props is None:
                self._dockwidget_props = AddPropsDockWidget()

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

        Adds "Add Static Objects" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        
Adds "Add Static Objects" dock widget.
Creates OpenSCENARIO layer group if it does not exist.
Adds " Add Static Objects " dock widget . Creates OpenSCENARIO layer group if it does not exist .
def add_props(self):
        if self._root_layer.findGroup("OpenSCENARIO") is None:
            self._root_layer.addGroup("OpenSCENARIO")
        if not self._plugin_is_active_props:
            self._plugin_is_active_props = True
            if self._dockwidget_props is None:
                self._dockwidget_props = AddPropsDockWidget()
            self._dockwidget_props.closingPlugin.connect(self.onClosePlugin)
            self.iface.addDockWidget(Qt.BottomDockWidgetArea, self._dockwidget_props)
            self._dockwidget_props.show()
def add_props ( self ) : if self . _root_layer . findGroup ( "OpenSCENARIO" ) is None : self . _root_layer . addGroup ( "OpenSCENARIO" ) if not self . _plugin_is_active_props : self . _plugin_is_active_props = True if self . _dockwidget_props is None : self . _dockwidget_props = AddPropsDockWidget ( ) self . _dockwidget_props . closingPlugin . connect ( self . onClosePlugin ) self . iface . addDockWidget ( Qt . BottomDockWidgetArea , self . _dockwidget_props ) self . _dockwidget_props . show ( )
Adds "Add Static Objects" dock widget.
Adds " Add Static Objects " dock widget .
"""
        Adds "Add Static Objects" dock widget.
        Creates OpenSCENARIO layer group if it does not exist.
        """ # Add temporary scratch layer to QGIS (if not yet created) # Load plugin
self