osc_generator/osc_generator.py
def initGui(self):  # pylint: disable=invalid-name
        """Create the menu entries and toolbar icons inside the QGIS GUI."""

        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_weather.png',
            text=self.tr(u'Edit Environment'),
            callback=self.edit_environment,
            parent=self.iface.mainWindow())

        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_vehicle.png',
            text=self.tr(u'Add Vehicles'),
            callback=self.add_vehicles,
            parent=self.iface.mainWindow())

        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_pedestrian.png',
            text=self.tr(u'Add Pedestrians'),
            callback=self.add_pedestrians,
            parent=self.iface.mainWindow())

        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_static.png',
            text=self.tr(u'Add Static Objects'),
            callback=self.add_props,
            parent=self.iface.mainWindow())

        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_maneuver.png',
            text=self.tr(u'Add Maneuvers'),
            callback=self.add_maneuver,
            parent=self.iface.mainWindow())

        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_endEval.png',
            text=self.tr(u'End Evaluation KPIs'),
            callback=self.end_evaluation,
            parent=self.iface.mainWindow())

        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_code.png',
            text=self.tr(u'Export to OpenSCENARIO'),
            callback=self.export_xosc,
            parent=self.iface.mainWindow())
Create the menu entries and toolbar icons inside the QGIS GUI.
Create the menu entries and toolbar icons inside the QGIS GUI.
Create the menu entries and toolbar icons inside the QGIS GUI .
def initGui(self):  
        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_weather.png',
            text=self.tr(u'Edit Environment'),
            callback=self.edit_environment,
            parent=self.iface.mainWindow())
        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_vehicle.png',
            text=self.tr(u'Add Vehicles'),
            callback=self.add_vehicles,
            parent=self.iface.mainWindow())
        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_pedestrian.png',
            text=self.tr(u'Add Pedestrians'),
            callback=self.add_pedestrians,
            parent=self.iface.mainWindow())
        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_static.png',
            text=self.tr(u'Add Static Objects'),
            callback=self.add_props,
            parent=self.iface.mainWindow())
        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_maneuver.png',
            text=self.tr(u'Add Maneuvers'),
            callback=self.add_maneuver,
            parent=self.iface.mainWindow())
        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_endEval.png',
            text=self.tr(u'End Evaluation KPIs'),
            callback=self.end_evaluation,
            parent=self.iface.mainWindow())
        self.add_action(
            icon_path=':/plugins/OSC_Generator/icon_code.png',
            text=self.tr(u'Export to OpenSCENARIO'),
            callback=self.export_xosc,
            parent=self.iface.mainWindow())
def initGui ( self ) : self . add_action ( icon_path = ':/plugins/OSC_Generator/icon_weather.png' , text = self . tr ( u'Edit Environment' ) , callback = self . edit_environment , parent = self . iface . mainWindow ( ) ) self . add_action ( icon_path = ':/plugins/OSC_Generator/icon_vehicle.png' , text = self . tr ( u'Add Vehicles' ) , callback = self . add_vehicles , parent = self . iface . mainWindow ( ) ) self . add_action ( icon_path = ':/plugins/OSC_Generator/icon_pedestrian.png' , text = self . tr ( u'Add Pedestrians' ) , callback = self . add_pedestrians , parent = self . iface . mainWindow ( ) ) self . add_action ( icon_path = ':/plugins/OSC_Generator/icon_static.png' , text = self . tr ( u'Add Static Objects' ) , callback = self . add_props , parent = self . iface . mainWindow ( ) ) self . add_action ( icon_path = ':/plugins/OSC_Generator/icon_maneuver.png' , text = self . tr ( u'Add Maneuvers' ) , callback = self . add_maneuver , parent = self . iface . mainWindow ( ) ) self . add_action ( icon_path = ':/plugins/OSC_Generator/icon_endEval.png' , text = self . tr ( u'End Evaluation KPIs' ) , callback = self . end_evaluation , parent = self . iface . mainWindow ( ) ) self . add_action ( icon_path = ':/plugins/OSC_Generator/icon_code.png' , text = self . tr ( u'Export to OpenSCENARIO' ) , callback = self . export_xosc , parent = self . iface . mainWindow ( ) )
Create the menu entries and toolbar icons inside the QGIS GUI.
Create the menu entries and toolbar icons inside the QGIS GUI .
# pylint: disable=invalid-name """Create the menu entries and toolbar icons inside the QGIS GUI."""
self