5.5. How to define macros

You can define macros - that means global available Python functions - in the onopen() action of the form, and then call it from any other action:


Example 5-6. Macro example

   1 def mymakro(hk_this,v):
   2   hk_this.show_warningmessage("Displaying the text: "+v)

This can be called from a buttons onclick action:


Example 5-7. Macro example (part II)

   1 mymakro(hk_this," my text")