diff --git a/src/_macosx.m b/src/_macosx.m index e961e306ed76..b50b59d37bd8 100755 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -393,6 +393,9 @@ static CGFloat _get_device_scale(CGContextRef cr) PyErr_SetString(PyExc_RuntimeError, "NSView* is NULL"); return NULL; } + // We need to interrupt the runloop very briefly to allow the view to be + // displayed when used in a fast updating animation + [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]]; [view displayIfNeeded]; Py_RETURN_NONE; }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: