class SingletonManager: __instance = None @staticmethod def set_instance(instance): SingletonManager.__instance = instance @staticmethod def get_manager(): if SingletonManager.__instance is not None: return SingletonManager.__instance