Hello all,
I'm extremely new to Leo (just picked it up yesterday, actually, but I'm
already hooked!)
I'm trying to figure out how to make a @button that references another
script in Leo. As in, would like to do something like the following:
In one script, << foo_function >>
def foo(n):
g.es("foo! %s" % n)
And in some @buttons, like @button foo1
<< foo_function >>
foo(1)
But I can't for the life of me make this work... I'm assuming that's
because << ... >> only has meaning with respect to a @thin/@file node.
Any help on this? I'd like to define a few buttons that share code. I
suppose I could make foo(n) a command, but I don't quite know how to go
about doing this, either, with it still taking input.
Thanks,
-->Jake
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.