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
198f6ad1
Commit
198f6ad1
authored
2 years ago
by
Emmanuel Heriberto Oceguera Conchas
Browse files
Options
Downloads
Patches
Plain Diff
name changed from tool
parent
bb9e86c0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
netCDF_visualization.py
+40
-0
40 additions, 0 deletions
netCDF_visualization.py
with
40 additions
and
0 deletions
netCDF_visualization.py
0 → 100644
+
40
−
0
View file @
198f6ad1
#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
()
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