UI de Flux auto scale

This commit is contained in:
2025-02-13 13:59:26 +01:00
parent e2e062ed12
commit 1a17bb7d7c
4 changed files with 317 additions and 240 deletions
+10 -3
View File
@@ -7,7 +7,7 @@ from builtins import str
from builtins import object
import qgis
from qgis.PyQt.QtCore import QSettings
from qgis.PyQt.QtWidgets import QAction, QMenu, QDialog, QMessageBox
from qgis.PyQt.QtWidgets import QAction, QMenu, QDialog, QMessageBox,QDialogButtonBox
from qgis.PyQt.QtGui import QIcon
from PyQt5.QtCore import *
from PyQt5.QtGui import *
@@ -64,7 +64,8 @@ class Postgis_Rename(QDialog, EDITOR_CLASS):
### Outil Ajout de nouvelles couche a un dossier
def raise_(self):
self.activateWindow()
self.groupBox_2.hide()
self.groupBox_3.hide()
self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
GET_ALL_SCHEMA = """SELECT DISTINCT table_schema FROM information_schema.tables WHERE table_schema LIKE '_form_%' OR table_schema LIKE '_01_%' OR table_schema LIKE '_07_%' OR table_schema LIKE '_26_%' OR table_schema LIKE '_42_%' OR table_schema LIKE '_69_%' ORDER BY table_schema;"""
cur.execute(GET_ALL_SCHEMA)
AllSchema = cur.fetchall()
@@ -83,7 +84,13 @@ class Postgis_Rename(QDialog, EDITOR_CLASS):
def Test(self):
if self.schema.currentText() != '':
self.loadValue()
allIsGood = 0
if allIsGood == 2:
self.groupBox_3.show()
self.loadValue()
self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(True)
else:
self.old_name.setText('')