On Fri, 24 May 2013 12:08:38 -0700 (PDT)
Fidel Pérez <[email protected]> wrote:

> Hi, been reading to figure out how to make and delete buttons from scripts.
> So far I have this:
> 
> c.frame.getIconBarObject().add(text='hello button',command=c.executeScript)
> 
> 
> I know Im close but still doesnt do what I need:
> 
> 
>    - How to create button which executes the script of a node?
>    - How to delete that button later on?
>    
> 
> I have been reading quickmove.py to try to figure it out but its hard to 
> understand yet :\

Maybe look at

.../leo/plugins/leoPluginsRef.leo#Plugins-->Scripting-->@file
mod_scripting.py-->class scriptingController-->createAllButtons & 
helpers-->createScriptButtonIconButton 'script-button' & 
callback-->addScriptButtonCommand

Cheers -Terry

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