flake8 sicen
This commit is contained in:
parent
e503423e49
commit
ca1d895eb1
@ -1,10 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
/***************************************************************************
|
||||
SICEN
|
||||
A QGIS plugin
|
||||
Filtre sur données SICEN
|
||||
-------------------
|
||||
SICEN
|
||||
A QGIS plugin
|
||||
Filtre sur données SICEN
|
||||
-------------------
|
||||
begin : 2014-10-17
|
||||
copyright : (C) 2014 by Guillaume COSTES
|
||||
email : guillaume.costes@espaces-naturels.fr
|
||||
@ -18,10 +18,11 @@
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
This script initializes the plugin, making it known to QGIS.
|
||||
This script initializes the plugin, making it known to QGIS.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
def classFactory(iface):
|
||||
# load SICEN class from file SICEN
|
||||
from .sicen import SICEN
|
||||
|
||||
@ -5,10 +5,9 @@
|
||||
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
try:
|
||||
from PyQt5 import QtCore
|
||||
except:
|
||||
from PyQt6 import QtCore
|
||||
|
||||
from qgis.PyQt import QtCore
|
||||
|
||||
qt_resource_data = b"\
|
||||
\x00\x00\x0d\x89\
|
||||
\x89\
|
||||
@ -558,10 +557,13 @@ else:
|
||||
rcc_version = 2
|
||||
qt_resource_struct = qt_resource_struct_v2
|
||||
|
||||
|
||||
def qInitResources():
|
||||
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
|
||||
def qCleanupResources():
|
||||
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
|
||||
qInitResources()
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
/***************************************************************************
|
||||
SICENDialog
|
||||
A QGIS plugin
|
||||
Filtre sur données SICEN
|
||||
-------------------
|
||||
SICENDialog
|
||||
A QGIS plugin
|
||||
Filtre sur données SICEN
|
||||
-------------------
|
||||
begin : 2014-10-17
|
||||
copyright : (C) 2014 by Guillaume COSTES
|
||||
email : guillaume.costes@espaces-naturels.fr
|
||||
@ -20,8 +20,8 @@
|
||||
***************************************************************************/
|
||||
"""
|
||||
|
||||
from qgis.PyQt import QtCore, QtGui
|
||||
from qgis.PyQt.QtWidgets import QAction, QDialog
|
||||
# from qgis.PyQt import QtCore, QtGui
|
||||
from qgis.PyQt.QtWidgets import QDialog
|
||||
from .ui_sicen import Ui_SICEN
|
||||
# create the dialog for zoom to point
|
||||
|
||||
|
||||
@ -8,9 +8,10 @@
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from builtins import object
|
||||
from qgis.PyQt import QtCore, QtGui
|
||||
from qgis.PyQt import QtCore
|
||||
from qgis.PyQt.QtGui import QFont
|
||||
from qgis.PyQt.QtWidgets import QAction, QDialog, QDialogButtonBox, QLabel, QApplication, QTabWidget, QWidget, QGroupBox, QGridLayout, QComboBox, QCheckBox, QCalendarWidget, QToolBox, QFrame, QLineEdit, QSizePolicy #Modifié
|
||||
# Modifié
|
||||
from qgis.PyQt.QtWidgets import QDialogButtonBox, QLabel, QApplication, QTabWidget, QWidget, QGroupBox, QGridLayout, QComboBox, QCheckBox, QCalendarWidget, QToolBox, QFrame, QLineEdit, QSizePolicy
|
||||
|
||||
|
||||
try:
|
||||
@ -21,20 +22,22 @@ except AttributeError:
|
||||
|
||||
try:
|
||||
_encoding = QApplication.UnicodeUTF8
|
||||
|
||||
def _translate(context, text, disambig):
|
||||
return QApplication.translate(context, text, disambig, _encoding)
|
||||
except AttributeError:
|
||||
def _translate(context, text, disambig):
|
||||
return QApplication.translate(context, text, disambig)
|
||||
|
||||
|
||||
class Ui_SICEN(object):
|
||||
def setupUi(self, SICEN):
|
||||
SICEN.setObjectName(_fromUtf8("SICEN"))
|
||||
SICEN.resize(592, 556)
|
||||
self.buttonBox = QDialogButtonBox(SICEN)
|
||||
self.buttonBox.setGeometry(QtCore.QRect(390, 520, 161, 32))
|
||||
#self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton(0x00400000)|QDialogButtonBox.StandardButton(0x00000400))
|
||||
# self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton(0x00400000) | QDialogButtonBox.StandardButton(0x00000400))
|
||||
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
|
||||
self.Titre = QLabel(SICEN)
|
||||
self.Titre.setGeometry(QtCore.QRect(110, 10, 331, 31))
|
||||
@ -529,7 +532,7 @@ class Ui_SICEN(object):
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.groupBox_6.setFont(font)
|
||||
self.groupBox_6.setAlignment(QtCore.Qt.AlignmentFlag(0x0001)|QtCore.Qt.AlignmentFlag(0x0001)|QtCore.Qt.AlignmentFlag(0x0080))
|
||||
self.groupBox_6.setAlignment(QtCore.Qt.AlignmentFlag(0x0001) | QtCore.Qt.AlignmentFlag(0x0001) | QtCore.Qt.AlignmentFlag(0x0080))
|
||||
self.groupBox_6.setObjectName(_fromUtf8("groupBox_6"))
|
||||
self.gridLayoutWidget_7 = QWidget(self.groupBox_6)
|
||||
self.gridLayoutWidget_7.setGeometry(QtCore.QRect(10, 20, 491, 21))
|
||||
@ -680,8 +683,9 @@ class Ui_SICEN(object):
|
||||
self.retranslateUi(SICEN)
|
||||
self.Emprise.setCurrentIndex(0)
|
||||
self.protections.setCurrentIndex(0)
|
||||
self.buttonBox.accepted.connect(SICEN.accept)
|
||||
self.buttonBox.rejected.connect(SICEN.reject) #Modifié
|
||||
self.buttonBox.accepted.connect(SICEN.accept)
|
||||
# Modifié
|
||||
self.buttonBox.rejected.connect(SICEN.reject)
|
||||
QtCore.QMetaObject.connectSlotsByName(SICEN)
|
||||
|
||||
def retranslateUi(self, SICEN):
|
||||
@ -753,4 +757,3 @@ class Ui_SICEN(object):
|
||||
self.label_11.setText(_translate("SICEN", "4.", None))
|
||||
self.Emprise.setTabText(self.Emprise.indexOf(self.tab_4), _translate("SICEN", "Filtre par Emprise", None))
|
||||
self.centroide.setText(_translate("SICEN", "Utiliser les centroïdes pour les observations autres que ponctuelles", None))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user