On Thu, 6 Oct 2011 06:16:17 -0500
"Edward K. Ream" <[email protected]> wrote:
> You can execute any of Python's file code from Leo::
>
> f = open(filename,'w')
> f.write('hello world')
>
> etc. Happy scripting :-)
Todd - not sure if you're into Python or not, I think there's often an
implicit assumption people using Leo use Python, but it's not intended
to be a requirement. So, if you are getting into using Python,
adapting the script to output to a file would be a good exercise, and
the one Leo specific thing you might want to know is that you can
request a filename from the user with
filename = g.app.gui.runSaveFileDialog('Save to file')
If you're not into Python, let me know and I'll change the script to
write to a file, it's minor changes.
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.