From 3aa0d7c5b4b9b64cfc6689637e7f95363ab0271a Mon Sep 17 00:00:00 2001 From: lm Date: Fri, 17 Oct 2025 12:59:39 +0200 Subject: [PATCH] Require msgcat before initialising ttkbootstrap --- app/gui/theme.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/gui/theme.py b/app/gui/theme.py index ca670a3..785bd38 100644 --- a/app/gui/theme.py +++ b/app/gui/theme.py @@ -30,6 +30,11 @@ class ThemeMixin: def init_theme(self) -> None: """Initialise ttk style handling and apply the detected theme.""" if HAS_TTKBOOTSTRAP: + try: + # Ensure msgcat package is available before ttkbootstrap initialises translations + self.root.tk.call("package", "require", "msgcat") # type: ignore[attr-defined] + except Exception: + pass self.style = tb.Style() self.using_tb = True else: