Am Freitag, 6. April 2007 23:56 schrieb Michael Eschweiler:
> In a module named subTest I stored the following:
> def stest(tw):
> hk_this.show_warningmessage("Test: " + str(tw))
>
> Then I wrote
> subTest.stest(2) in the on_click_action of a button but I get
> "Zeile 3: name 'subTest' is not defined." Where is the fault?
> Thanks in adance!
> Michael
Correct call would be
hk_thisform.load_module("subTest")
stest(2)
See the Tips and Tricks section of the knoda scripting tutorial for details
Horst
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss