Rich,
Alternatively to what the opthers have suggested you could add a visible_assing mehtod to your buttons and in there set the value based on the tag properties value, then your setall would just try to setall of the buttons and each button itself would decide if it should do the setting or not.