From fda729439d9506dc045ad99a205e06266ece9cf9 Mon Sep 17 00:00:00 2001
From: Oceguera Conchas <no67wuwu@idiv.de>
Date: Wed, 28 Sep 2022 13:25:43 +0200
Subject: [PATCH] test to upload the GUI

---
 GUI_upload_test.py | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 GUI_upload_test.py

diff --git a/GUI_upload_test.py b/GUI_upload_test.py
new file mode 100644
index 0000000..6add189
--- /dev/null
+++ b/GUI_upload_test.py
@@ -0,0 +1,34 @@
+from PyQt5 import uic
+
+myGUI = uic.loadUi(r"I:\biocon\Emmanuel_Oceguera\netCDFVisualizationPlugin\netCDF_visualizer.ui")
+myGUI.show()
+
+def importData():
+    #print("ok")
+    path = QFileDialog.getOpenFileName(None,"select netCDF file", filter="*.nc")[0]
+    #print(path)
+    
+    #to set the path in the text space 
+    myGUI.text_set.setText(path)
+
+myGUI.btn_inputFile.clicked.connect(importData)
+
+def removePath():
+    #print("ok")
+    myGUI.text_set.clear()
+
+myGUI.btn_remove.clicked.connect(removePath)
+
+def loadData():
+   print("ok") 
+
+
+
+myGUI.btn_load.clicked.connect(loadData)
+
+def closePlugin():
+    #close the Plugin
+    #print ("ok")
+    myGUI.close()
+    
+myGUI.btn_closePlugin.clicked.connect(closePlugin)
\ No newline at end of file
-- 
GitLab