Ensure we have the GIL in GraphicsContext.GetTextExtent

This commit is contained in:
Robin Dunn
2017-05-09 19:47:57 -07:00
parent bae2b7f046
commit c8b3ccc44c

View File

@@ -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);
""")