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

the functions closePlugin and importData have been added

parent c57b8b7d
No related branches found
No related tags found
No related merge requests found
...@@ -55,11 +55,27 @@ class maskAndFuntionality (BASE, WIDGET): ...@@ -55,11 +55,27 @@ class maskAndFuntionality (BASE, WIDGET):
self.setupUi(self) self.setupUi(self)
#self ist our GUI #self ist our GUI
#the GUI is built in the running of QGIS in the current session (using the iface) #the GUI is built in the running of QGIS in the current session (using the iface)
""" Here is the place for the Clicked Signal"""
self.btn_closePlugin.clicked.connect(self.closePlugin)
self.btn_inputFile.clicked.connect(self.importData)
def closePlugin(self):
"""This function closes the plugin"""
#we close the plugin
self.close()
def importData(self):
"""This function imports the netCDF file"""
#we get the path to the netCDF file
path = QFileDialog.getOpenFileName(None,"select netCDF file", filter="*.nc")[0]
#we set the path in the text space
self.text_set.setText(path)
def removePath(self):
"""This function removes the path from the text space"""
#we remove the path from the text space
self.text_set.clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment