@Albertofx

yes in python if one parameter (of buttons) change, you can run a operator to run an other operator (a function update).

You must search an other addon with this kind of operation…

for example in UI panel:

layout.prop(context.scene, “add_material_auto”, icon = “MATERIAL”).hereyoucanchoosetheevent

.hereyoucanchoosetheevent

read the Blenderpython wiki.

Each time you change the parameter, an other function is interpreted…

EDIT: you too could have a event in your function.