Callbacks can be declared at the attribute level or the view level of an Attribute Editor template. Add callbacks to your template using the <description language="cb"> XML tag. See Parts of an Attribute Editor template.
<attribute name="details "type ="maya.bool"> <description language="cb">AEtankControlAnim</description> <label>Details</label> </attribute>
<property name="rtCannonPan"> <description language="cb">AEtankControlAnim</description> </property>