Description:
Using a button we can call an XML action or a python function. If you want to call a python function on a button click, the type has to be given as an object.
On the contrary, if the type is given an action, the code will look for the action in the name of the given button. In this video, we can look at how to trigger a function with a button click.