The recent change to createAtButtonHelper has broken the following
@button node in leoDocs.leo:
@button rst3
c.rstCommands.rst3()
I'm not sure what is happening, but the proper code is not being
executed.
When I disable this button, <alt-x>rst3<return> works.
I tried to revert to the old code as follows (note the new controller
argument).
def atButtonCallback (
event=None,self=self,p=p.copy(),b=b,c=c,
buttonText=buttonText,controller=None
):
self.executeScriptFromButton (p,b,buttonText)
if c.exists: c.outerUpdate()
but that fails spectacularly: the script is executed on startup.
I haven't studied the changes you made in detail, but clearly all is
not well. At minimum, the rst3 button in leoDocs.leo must be made to
work.
Thanks.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.