Template
forked from CEN-RA/Plugin_QGIS
Performance optimisée hors connexion
This commit is contained in:
@@ -4,7 +4,8 @@ __email__ = "info@3liz.org"
|
||||
|
||||
|
||||
from qgis.core import QgsApplication
|
||||
from qgis.PyQt.QtCore import Qt, QUrl
|
||||
from qgis.PyQt.QtCore import QUrl
|
||||
# from qgis.PyQt.QtCore import Qt
|
||||
from qgis.PyQt.QtGui import QDesktopServices, QIcon
|
||||
from qgis.PyQt.QtWidgets import QAction
|
||||
from qgis.utils import iface
|
||||
@@ -36,7 +37,7 @@ pyperclip()
|
||||
|
||||
try:
|
||||
from .canvas_editor import AutoMap_Editor
|
||||
from .style_invoke import AutoMap_Style
|
||||
# from .style_invoke import AutoMap_Style
|
||||
except NameError:
|
||||
print('404')
|
||||
|
||||
@@ -85,11 +86,11 @@ class PgAutoMap:
|
||||
self.toolBar.addAction(self.automap_action)
|
||||
self.automap_action.triggered.connect(self.open_editor)
|
||||
|
||||
if not self.style_dock:
|
||||
self.style_dock = AutoMap_Style()
|
||||
# if not self.style_dock:
|
||||
# self.style_dock = AutoMap_Style()
|
||||
|
||||
if os.environ['USERNAME'] == 'tlaveille' or os.environ['USERNAME'] == 'lpoulin' or os.environ['USERNAME'] == 'rclement':
|
||||
iface.addDockWidget(Qt.DockWidgetArea(0x1), self.style_dock)
|
||||
# if os.environ['USERNAME'] == 'tlaveille' or os.environ['USERNAME'] == 'lpoulin' or os.environ['USERNAME'] == 'rclement':
|
||||
# iface.addDockWidget(Qt.DockWidgetArea(0x1), self.style_dock)
|
||||
|
||||
def open_about_dialog(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user