Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

63-Criar-aba-visual-resultados #75

Merged
merged 11 commits into from
Aug 25, 2021
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ venv.bak/
# Visual Studio Code project settings
.vscode

# JetBrains PyCharm project settings
.idea

# Rope project settings
.ropeproject

Expand All @@ -133,3 +136,4 @@ dmypy.json

# Pyre type checker
.pyre/

13 changes: 9 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

"""RUBEM Hydrological plugin starting point.

This file is required by Python’s import system.
Also, QGIS requires that this file contains a `classFactory()` function, which is called when the plugin gets loaded into QGIS.
This file is required by Python’s import system.
Also, QGIS requires that this file contains a `classFactory()` function,\n
which is called when the plugin gets loaded into QGIS.
"""

__author__ = "LabSid PHA EPUSP"
Expand All @@ -37,9 +38,13 @@ def classFactory(iface):
:param iface: Reference to the instance of `QgisInterface`.
:type iface: class

:return: Object of RUBEM Hydrological plugin’s class from the `rubem_hydrological.py` (`RUBEMHydrological`).
:return: Object of RUBEM Hydrological plugin’s class from the\n
`rubem_hydrological.py` (`RUBEMHydrological`).
:rtype: class
"""
from .rubem_hydrological import RUBEMHydrological
try:
from .rubem_hydrological import RUBEMHydrological
except ImportError:
from rubem_hydrological import RUBEMHydrological

return RUBEMHydrological(iface)
4,034 changes: 0 additions & 4,034 deletions resources_rc.py

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions rubem_hydrological.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ def unload(self):

def run(self):
"""Run method that performs all the real work."""
# Create the dialog with elements (after translation) and keep reference
# Only create GUI ONCE in callback, so that it will only load when the plugin is started
if self.first_start == True:
# Create the dialog with elements (after translation) and keep ref
# Only create GUI ONCE in callback, so that it will only load when the
# plugin is started
if self.first_start:
self.first_start = False
self.dlg = RUBEMHydrologicalDialog(self.iface)

Expand Down
Loading