@channelBox.setter
def channelBox(self, value):
    elements = (self if (self.isArray or self.isCompound) else [self])
    for el in elements:
        cmds.setAttr(el.path(), keyable=value, channelBox=value)
@channelBox.setter
def channelBox(self, value):
    elements = (self if (self.isArray or self.isCompound) else [self])
    for el in elements:
        cmds.setAttr(el.path(), keyable=value, channelBox=value)