Thanks for your answer, that solved it. In case its useful for someone else, the code for button creation is:
g.app.gui.ScriptingControllerClass(c).handleAtButtonNode(p) On Friday, May 24, 2013 9:24:15 PM UTC+2, Terry wrote: > > On Fri, 24 May 2013 12:08:38 -0700 (PDT) > Fidel Pérez <[email protected] <javascript:>> 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.
