Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EBVCubeVisualizerPlugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
no67wuwu
EBVCubeVisualizerPlugin
Commits
37d68b60
Commit
37d68b60
authored
2 years ago
by
Emmanuel Heriberto Oceguera Conchas
Browse files
Options
Downloads
Patches
Plain Diff
the functions closePlugin and importData have been added
parent
c57b8b7d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
netCDF_visualizer_funtionality.py
+17
-1
17 additions, 1 deletion
netCDF_visualizer_funtionality.py
with
17 additions
and
1 deletion
netCDF_visualizer_funtionality.py
+
17
−
1
View file @
37d68b60
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment