

@classmethod
def acquire(cls, context):
    assert isinstance(context, Gaffer.Context)
    for (playbackContext, playback) in cls.__instances:
        if context.isSame(playbackContext):
            return playback
    playback = Playback(context)
    cls.__instances.append((context, playback))
    return playback

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/Playback.py Playback.acquire/original