flake8 sicen

This commit is contained in:
2025-07-29 15:16:03 +02:00
parent e503423e49
commit ca1d895eb1
5 changed files with 336 additions and 359 deletions
+11 -8
View File
@@ -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))