From c8b3ccc44c34b220b4e8353ce8340095af74e782 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 9 May 2017 19:47:57 -0700 Subject: [PATCH] Ensure we have the GIL in GraphicsContext.GetTextExtent --- etg/graphics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/etg/graphics.py b/etg/graphics.py index 81efa657..266ae84c 100644 --- a/etg/graphics.py +++ b/etg/graphics.py @@ -111,6 +111,7 @@ def run(): body="""\ wxDouble width = 0.0, height = 0.0; self->GetTextExtent(*text, &width, &height, NULL, NULL); + wxPyThreadBlocker blocker; return sipBuildResult(0, "(dd)", width, height); """)