Template
forked from CEN-RA/Plugin_QGIS
UI de Flux auto scale
This commit is contained in:
@@ -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('')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user