The knoda scripting tutorial | ||
---|---|---|
Prev | Chapter 5. Tips and tricks |
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: