Ok, in order to print icons, the code is this:

c.editCommands.insertIconFromFile(path)


Im quoting from this Leo 
manual<http://leoeditor.com/scripting.html#import-objects>, 
"inserting and deleting icons" section -_-

Although I still have a mess on which functions can be called how, and 
where to find the list of classes that can be called such as "editCommands" 
and the rest that they might exist.
Thanks!

On Sunday, May 19, 2013 12:43:50 PM UTC+2, Fidel Pérez wrote:
>
> Hi, I am going through something similar Matt Wilkie went through in this 
> post<https://groups.google.com/forum/?fromgroups=#!searchin/leo-editor/leopyref/leo-editor/pWyd5ae952I/kvxf_H-QBq4J>
> .
>
> Basically I can find interesting functions in LeoPyRef.leo but I dont know 
> how to access them from my new leo scripts.
>
> I dont get the difference when I have to call them using g.Functionname(), 
> c.functionname(), or when those wont do.
>
> How can I call the function "insertIconFromFile"?
> How can I know how to call functions found in LeoPyRef.leo?
>
> Thanks!
>
> Pd: When I get that, I will already have a bookmarks importer from 
> chrome/mozilla which will also import the icons of the links! x)
> I will prepare some more interesting utils (import mindmap, etc) then 
> release them together with manuals oriented to noob users.
>

-- 
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.


Reply via email to