Index: doc/user/06_feature/scripting/rosetta/11_hello_menu/ex.py =================================================================== --- doc/user/06_feature/scripting/rosetta/11_hello_menu/ex.py (nonexistent) +++ doc/user/06_feature/scripting/rosetta/11_hello_menu/ex.py (revision 20881) @@ -0,0 +1,8 @@ +def hello(): + message("Hello world!"); + return 0 + +# register hello() action +fgw_func_reg("hello") +cookie = scriptcookie() +createmenu("/main_menu/Plugins/script/hello", "hello()", "Prints hello! in the log", cookie)