def __set_enabled(cls, id, bool): bp = cls.get(id) res, _ = bp.IsEnabled(), bp.SetEnabled(bool) return res