From 198f6ad1fe53d7bcac80f222fe12ad5da7f1237d Mon Sep 17 00:00:00 2001
From: Emmanuel Heriberto Oceguera Conchas <e.oceguera@gmx.de>
Date: Tue, 20 Sep 2022 14:34:36 +0200
Subject: [PATCH] name changed from tool

---
 netCDF_visualization.py | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 netCDF_visualization.py

diff --git a/netCDF_visualization.py b/netCDF_visualization.py
new file mode 100644
index 0000000..635a517
--- /dev/null
+++ b/netCDF_visualization.py
@@ -0,0 +1,40 @@
+#we import the important functions from the pyQt5 library
+from PyQt5.QtCore import *  # @UnusedWildImport
+from PyQt5.QtGui import *  # @UnusedWildImport
+from PyQt5.QtWidgets import *  # @UnusedWildImport
+
+#import everthing from the netCDF_visualization_funtionality.py file
+from netCDF_visualization_funtionality import *
+
+#we write a class, Plugins is a class
+import os
+
+class netCDF_viewer:
+    """This is a class for the netCDF_visualization Plugin"""
+    #we set that we need the iface to build something with the class
+    def __init__(self, iface):
+        #our class builds netCDF_visualization Plugins
+        #self is a Plugin
+        #we set the iface as an attribute!!
+        self.iface = iface
+        
+    #when we click the plugin in QGIS the plugin will be loaded
+    def initGui(self):
+        #we build the menu entry without placing it in the menu
+        self.pluginButton = QAction('Start', self.iface.mainWindow())
+        #we add the menu entry
+        self.iface.addPluginToMenu('netCDF_viewer', self.pluginButton)
+        #everytime the self.pluginButton is clicked the maskeAufrufen should be executed
+        self.pluginButton.triggered.connect(self.callMask)
+    
+    def unload(self):
+        #we have to remove the self.pluginButton and the menu entry again!1
+        self.iface.removePluginMenu('netCDF_viewer', self.pluginButton)
+        
+        
+    def callMask (self):
+        #the GUI will be built!
+        self.unsereGui = maskFuntionality(self.iface)
+        #we open the Gui
+        self.unsereGui.show()
+
-- 
GitLab