diff options
Diffstat (limited to 'grc/blocks/epy_module.xml')
-rw-r--r-- | grc/blocks/epy_module.xml | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/grc/blocks/epy_module.xml b/grc/blocks/epy_module.xml deleted file mode 100644 index fa3e5f91f4..0000000000 --- a/grc/blocks/epy_module.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0"?> -<block> - <name>Python Module</name> - <key>epy_module</key> - <import>import $id # embedded python module</import> - <make></make> - <param> - <name>Code</name> - <key>source_code</key> - <value># this module will be imported in the into your flowgraph</value> - <type>_multiline_python_external</type> - <hide>part</hide> - </param> - <doc>This block lets you embed a python module in your flowgraph. - -Code you put in this module is accessible in other blocks using the ID of this -block. Example: - -If you put - - a = 2 - - def double(arg): - return 2 * arg - -in a Python Module Block with the ID 'stuff' you can use code like - - stuff.a # evals to 2 - stuff.double(3) # evals to 6 - -to set parameters of other blocks in your flowgraph.</doc> -</block> |