miscs
This commit is contained in:
1 parent
0d8970061e
commit
c30aac0572
14 files changed
+343
-48
No files matched your search
+12
-3
@@ -180,7 +180,7 @@ def copy_pdf_paths(evaluation: Path) -> list[Path]:
|
||||
(
|
||||
path
|
||||
for path in location.glob("*.pdf")
|
||||
if not EvaluationWorkspace(evaluation).is_statement_pdf(path)
|
||||
if not EvaluationWorkspace(evaluation).is_statement_pdf(evaluation / path.name)
|
||||
),
|
||||
key=lambda path: path.name.casefold(),
|
||||
)
|
||||
@@ -1009,7 +1009,9 @@ class CopienatorApp(tk.Tk):
|
||||
self.persp_inventory_label.configure(text=text)
|
||||
|
||||
def _render_context_controls(self, step: StepDefinition, row: int) -> int:
|
||||
if step.id == "annotation" and self.variant_var.get() == "grouped":
|
||||
if step.id == "statement_groups" or (
|
||||
step.id == "annotation" and self.variant_var.get() == "grouped"
|
||||
):
|
||||
controls = ttk.Frame(self.form)
|
||||
controls.grid(row=row, column=0, columnspan=2, sticky="ew", pady=(0, 8))
|
||||
self.label_groups_button = ttk.Button(
|
||||
@@ -1020,7 +1022,9 @@ class CopienatorApp(tk.Tk):
|
||||
self.label_groups_button.pack(side="left")
|
||||
ttk.Label(
|
||||
controls,
|
||||
text="Une ligne = un groupe. Vérifiez et enregistrez le fichier avant d’exécuter BGnot.",
|
||||
text=("Une ligne = un groupe. Vérifiez les groupes actuels avant de lancer Gemini."
|
||||
if step.id == "statement_groups" else
|
||||
"Une ligne = un groupe. Vérifiez et enregistrez le fichier avant d’exécuter BGnot."),
|
||||
wraplength=470,
|
||||
justify="left",
|
||||
).pack(side="left", padx=(10, 0))
|
||||
@@ -1318,6 +1322,11 @@ class CopienatorApp(tk.Tk):
|
||||
|
||||
def _open_label_groups(self) -> None:
|
||||
evaluation = self.evaluation
|
||||
if self.current_step and self.current_step.id == "statement_groups":
|
||||
target = self.arg_vars.get("target")
|
||||
value = str(target.get()).strip() if target else ""
|
||||
if value:
|
||||
evaluation = (self.repository / value).resolve()
|
||||
self._open_desktop_path(
|
||||
evaluation / "label_groups" if evaluation else None,
|
||||
"fichier label_groups",
|
||||
|
||||
Reference in new issue
Block a user