forked from CEN38/plugin_gn_tools
Téléverser les fichiers vers "gn_tools"
This commit is contained in:
parent
26ed1e0e0d
commit
db04635b84
@ -19,16 +19,16 @@ deprecated=False
|
|||||||
experimental=True
|
experimental=True
|
||||||
plugin_dependencies=
|
plugin_dependencies=
|
||||||
qgisMinimumVersion=3.30
|
qgisMinimumVersion=3.30
|
||||||
qgisMaximumVersion=3.99
|
qgisMaximumVersion=4.99
|
||||||
supportsQt6=True
|
supportsQt6=True
|
||||||
|
|
||||||
# versioning
|
# versioning
|
||||||
version=0.1.0
|
version=0.1.1
|
||||||
changelog=
|
changelog=
|
||||||
|
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
domain_name=https://geonature.cen-isere.fr/geonature
|
domain_name=https://geonature.cenra-outils.org/geonature
|
||||||
biodiv_aura=https://donnees.biodiversite-auvergne-rhone-alpes.fr
|
biodiv_aura=https://donnees.biodiversite-auvergne-rhone-alpes.fr
|
||||||
|
|
||||||
[ref_taxon]
|
[ref_taxon]
|
||||||
|
|||||||
7
gn_tools/plugin_main.py
Executable file → Normal file
7
gn_tools/plugin_main.py
Executable file → Normal file
@ -24,7 +24,7 @@ from qgis.PyQt.QtCore import QCoreApplication, QLocale, QTranslator, QUrl
|
|||||||
from qgis.PyQt.QtGui import QDesktopServices, QIcon
|
from qgis.PyQt.QtGui import QDesktopServices, QIcon
|
||||||
from qgis.PyQt.QtWidgets import QAction, QMessageBox
|
from qgis.PyQt.QtWidgets import QAction, QMessageBox
|
||||||
from qgis.PyQt.QtNetwork import QNetworkAccessManager
|
from qgis.PyQt.QtNetwork import QNetworkAccessManager
|
||||||
from PyQt5.QtWidgets import QCheckBox, QApplication
|
from qgis.PyQt.QtWidgets import QCheckBox, QApplication
|
||||||
|
|
||||||
# project
|
# project
|
||||||
from gn_tools.__about__ import (
|
from gn_tools.__about__ import (
|
||||||
@ -388,12 +388,13 @@ class GnToolsPlugin:
|
|||||||
|
|
||||||
self.dlg.show()
|
self.dlg.show()
|
||||||
# Run the dialog event loop
|
# Run the dialog event loop
|
||||||
result = self.dlg.exec_()
|
result = self.dlg.exec()
|
||||||
if result:
|
if result:
|
||||||
# Do something useful here - delete the line containing pass and
|
# Do something useful here - delete the line containing pass and
|
||||||
# substitute with you
|
# substitute with you
|
||||||
print('ok')
|
print('ok')
|
||||||
print(result)
|
print(result)
|
||||||
|
self.dlg.activateWindow()
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@ -469,7 +470,7 @@ class GnToolsPlugin:
|
|||||||
|
|
||||||
def activate_window(self):
|
def activate_window(self):
|
||||||
# Put the dialog on top once the rectangle is drawn
|
# Put the dialog on top once the rectangle is drawn
|
||||||
# self.activateWindow()
|
self.dlg.activateWindow()
|
||||||
self.canvas.unsetMapTool(self.move_tool)
|
self.canvas.unsetMapTool(self.move_tool)
|
||||||
self.check_valid()
|
self.check_valid()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user