Allow signaling issues in label verification

This commit is contained in:
sebastien committed 2026-10-11 21:05:27 +02:00
1 parent 3754c0c11a
commit 9925362352
21 files changed
+1347 -36

No files matched your search

+4 -3
View File
@@ -212,6 +212,7 @@ def plotting_shortcut_lines() -> list[str]:
f"{display_names.get(PLOTTING_KB[action], PLOTTING_KB[action])} : {description}"
for action, description in labels
]
lines.append("! : signaler une erreur et passer à la copie suivante")
lines.append("Échap : fermer la fenêtre")
return lines
@@ -1189,7 +1190,7 @@ class CopienatorApp(tk.Tk):
)
ttk.Label(copies, text=help_text + "Vérifiez la commande puis cliquez sur Exécuter.",
wraplength=570).grid(row=3, column=0, columnspan=2, sticky="w", pady=(5, 0))
if step.id in {"page_splitter", "cutleft"}:
if step.id in {"page_splitter", "cutleft", "labels", "plotting"}:
try:
marked = copy_errors(EvaluationWorkspace(evaluation)) if evaluation else {}
marked_summary = ", ".join(marked) or "Aucune copie signalée."
@@ -1316,7 +1317,7 @@ class CopienatorApp(tk.Tk):
self.arg_vars["target"].set(self._evaluation_arg())
def _run_marked_copies(self) -> None:
if (not self.current_step or self.current_step.id not in {"page_splitter", "cutleft"}
if (not self.current_step or self.current_step.id not in {"page_splitter", "cutleft", "labels", "plotting"}
or self.active_step_id or self.runner.running or not self.state_store.evaluation):
return
self.arg_vars["target"].set(self._evaluation_arg())
@@ -2146,7 +2147,7 @@ class CopienatorApp(tk.Tk):
if self.current_step and self.current_step.id == "batch_status":
self.watch_batches_button.configure(state="disabled" if running or self.batch_monitor.active or not self.state_store.evaluation else "normal")
self.stop_watch_batches_button.configure(state="normal" if self.batch_monitor.active else "disabled")
if running and self.current_step and self.current_step.id in {"page_splitter", "cutleft"}:
if running and self.current_step and self.current_step.id in {"page_splitter", "cutleft", "labels", "plotting"}:
self.marked_copies_button.configure(state="disabled")
if self.current_step and self.current_step.id == "rename":
self.validate_rename_button.configure(