def initGui(self): # help self.helpAction = QAction( QIcon(":/plugins/plaingeometryeditor/icons/help.svg"), "Help", self.iface.mainWindow()) self.helpAction.triggered.connect(lambda: QDesktopServices().openUrl( QUrl("http://3nids.github.io/plaingeometryeditor"))) self.iface.addPluginToMenu("&Plain Geometry Editor", self.helpAction) # map tool action self.mapToolAction = QAction( QIcon( ":/plugins/plaingeometryeditor/icons/plaingeometryeditor.svg"), "Plain Geometry Editor", self.iface.mainWindow()) self.mapToolAction.setCheckable(True) self.mapTool = IdentifyGeometry(self.mapCanvas) self.mapTool.geomIdentified.connect(self.editGeometry) self.mapTool.setAction(self.mapToolAction) self.mapToolAction.triggered.connect(self.setMapTool) self.iface.addToolBarIcon(self.mapToolAction) self.iface.addPluginToMenu("&Plain Geometry Editor", self.mapToolAction)