From 4eb91c2d96973df62f4187cebe12c1bae15f557c Mon Sep 17 00:00:00 2001 From: Nigel Date: Sat, 21 Feb 2026 14:48:21 +0000 Subject: [PATCH 1/2] Ensure page label config dialog stays visible When choosing a page number, the AskString dialog caused the page label config dialog to go behind the root window (at least on Windows). Make it transient with respect to the parent dialog instead. Fixes #1736 --- src/guiguts/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guiguts/widgets.py b/src/guiguts/widgets.py index 43eedb76..171e7707 100644 --- a/src/guiguts/widgets.py +++ b/src/guiguts/widgets.py @@ -1532,7 +1532,7 @@ def __init__( super().__init__(parent) self.withdraw() self.title(title) - self.transient(root()) + self.transient(parent) self.resizable(False, False) self.result: Optional[str] = None From fabafe265e50f396406b055a19cfc9a31aa10a94 Mon Sep 17 00:00:00 2001 From: Nigel Date: Sat, 21 Feb 2026 15:00:43 +0000 Subject: [PATCH 2/2] Suppress mypy complaint --- src/guiguts/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guiguts/widgets.py b/src/guiguts/widgets.py index 171e7707..d459317e 100644 --- a/src/guiguts/widgets.py +++ b/src/guiguts/widgets.py @@ -1532,7 +1532,7 @@ def __init__( super().__init__(parent) self.withdraw() self.title(title) - self.transient(parent) + self.transient(parent) # type: ignore[arg-type] self.resizable(False, False) self.result: Optional[str] = None