Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 706b47bf rédigé par Benjamin HERVY's avatar Benjamin HERVY
Parcourir les fichiers

Disable start button until layers have been loaded

parent f868f755
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -253,6 +253,9 @@ class SmallETL:
# Setting up the tableWidgets
self.set_layer_tables()
# Enable start button
self.dlg.pushButton_Start.setEnabled(True)
logger.info('Layers have been selected. Define new rules or load previously saved config file.')
def set_layer_tables(self):
......@@ -357,6 +360,9 @@ class SmallETL:
self.worker.cancelled.connect(self.thread.quit)
self.thread.started.connect(self.worker.run) # Connect Thread started signal to Worker operational slot method
# Disable buttons connected to actions that can't be called at this stage
self.dlg.pushButton_Start.setEnabled(False)
# Connect signals
# Connect click event for Start and Cancel process buttons
self.dlg.pushButton_Start.clicked.connect(self.on_pb_start)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter