Ville, sorry, I can't fix it myself - the code, used as an example for
plugins gives an error:
c.k.registerCommand('upload',shortcut=None,func=self.upload)
script = "c.k.simulateCommand('upload')"
g.app.gui.makeScriptButton(c,script=script,buttonText='Upload') <---
here it breaks, saying
"AttributeError: 'leoIconBarButton' object has no attribute 'configure'"
Can you tell me, how to create a button on the top panel inside a
plugin and attach a code to it?
--
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.