(delay, func, *args, **kwargs)
Call a function on the Main thread after a delay (async).
Call a function on the Main thread after a delay (async).
Call a function on the Main thread after a delay ( async ) .
def callLater(delay, func, *args, **kwargs):
    """
    Call a function on the Main thread after a delay (async).
    """
    pool = NSAutoreleasePool.alloc().init()
    runner = PyObjCMessageRunner.alloc().initWithPayload_((func, args, kwargs))
    runner.callLater_(delay)
    del runner
    del pool
def callLater ( delay , func , * args , * * kwargs ) : pool = NSAutoreleasePool . alloc ( ) . init ( ) runner = PyObjCMessageRunner . alloc ( ) . initWithPayload_ ( ( func , args , kwargs ) ) runner . callLater_ ( delay ) del runner del pool