On Fri, 24 May 2013 12:08:38 -0700 (PDT)
Fidel Pérez <
fidel...@gmail.com> 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