Skip to content
Snippets Groups Projects
Commit d37a034d authored by Emmanuel Oceguera Conchas's avatar Emmanuel Oceguera Conchas
Browse files

Name have been change

parents 220161aa 00e152af
No related branches found
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ from netCDF_visualization_funtionality import * ...@@ -9,8 +9,8 @@ from netCDF_visualization_funtionality import *
#we write a class, Plugins is a class #we write a class, Plugins is a class
import os import os
class netCDF_viewer: class netCDF_visualizer:
"""This is a class for the netCDF_visualization Plugin""" """This is a class for the netCDF_visualizer Plugin"""
#we set that we need the iface to build something with the class #we set that we need the iface to build something with the class
def __init__(self, iface): def __init__(self, iface):
#our class builds netCDF_visualization Plugins #our class builds netCDF_visualization Plugins
...@@ -23,13 +23,13 @@ class netCDF_viewer: ...@@ -23,13 +23,13 @@ class netCDF_viewer:
#we build the menu entry without placing it in the menu #we build the menu entry without placing it in the menu
self.pluginButton = QAction('Start', self.iface.mainWindow()) self.pluginButton = QAction('Start', self.iface.mainWindow())
#we add the menu entry #we add the menu entry
self.iface.addPluginToMenu('netCDF_viewer', self.pluginButton) self.iface.addPluginToMenu('netCDF_visualizer', self.pluginButton)
#everytime the self.pluginButton is clicked the maskeAufrufen should be executed #everytime the self.pluginButton is clicked the maskeAufrufen should be executed
self.pluginButton.triggered.connect(self.callMask) self.pluginButton.triggered.connect(self.callMask)
def unload(self): def unload(self):
#we have to remove the self.pluginButton and the menu entry again!1 #we have to remove the self.pluginButton and the menu entry again!1
self.iface.removePluginMenu('netCDF_viewer', self.pluginButton) self.iface.removePluginMenu('netCDF_visualizer', self.pluginButton)
def callMask (self): def callMask (self):
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment