On 6/10/2013 12:49 AM, Matt Wilkie wrote:
You might want to use g.executeScript()...
...
http://leo-editor.readthedocs.org/en/latest/_modules/leo/core/leoCommands.html#Commands.executeScript
Thanks Jake. How did you locate that? the search function at Read The
Docs is broken for me, even searching for something as simple as
'edit' returns zero hits.
Yeah... I used ctrl+F. ReadTheDocs' search seems to be horribly
broken. As for the name, I just searched for "script" and kept clicking
next until I found something that looked right.
-->Jake
In any case, on deeper reflection I don't think I can use
executeScript. Privilege escalation has to happen when a process or
program is first started, and executeScript uses the current python
process (I think). So now I'm looking at what "Edit in..." does, which
seems to be located in `def editnode_rclick` of contextmenu.py. It's
taking me awhile to decode it though as this is new Leo territory for
me ;-)
-matt
--
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-US.
For more options, visit https://groups.google.com/groups/opt_out.