Here is a 'Hello World' program using an @thin tree. It creates the file helloWorld.py.

As usual, copy the following code, then paste into Leo using the Paste Node command:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet ekr_stylesheet?>
<leo_file>
<leo_header file_format="1" tnodes="2" max_tnode_index="2"/>
<vnodes>
<v t="ekr.20060618152824.1" a="EV"><vh>@thin helloWorld.py</vh>
<v t="ekr.20060618152824.2"><vh>main</vh></v>
</v>
</vnodes>
<tnodes>
<t tx="ekr.20060618152824.1">'''An example of a minimal @thin tree.
Can be executed as a script, but also generates helloWorld.py.'''

@language python
@tabwidth -4

@others

main()</t>
<t tx="ekr.20060618152824.2">def main():

    g.es('Hello World') # Print Hello World to Leo's log pane.</t>
</tnodes>
</leo_file>