So I got tired of copying changes to my script buttons between
outlines and I decided I wanted to stick all my buttons in one place.
I discovered that the @buttons node is supposed to do this.
In the @buttons node in leoSettings.leo, it suggests that the proper
place to stick this node is in myLeoSettings.leo.  After consulting
the docs, it seems myLeoSettings can go in a few different locations,
one of which is my home directory.  I decided to put it there.  I
added a @settings node, with a child @buttons node and a test @button
node.  I then opened up my test.leo.  Nothing happened.  It seems
myLeoSettings.leo isn't getting read.
I then tried sticking a test @button in leoSettings.leo.  Then, on
loading test.leo I got this error:

Traceback (most recent call last):
  File "/home/jesse/leo-editor/leo/core/leoGlobals.py", line 2904, in
doHook
    return f(tag,keywords)
  File "/home/jesse/leo-editor/leo/core/leoPlugins.py", line 295, in
doPlugins
    return doHandlersForTag(tag,keywords)
  File "/home/jesse/leo-editor/leo/core/leoPlugins.py", line 270, in
doHandlersForTag
    val = callTagHandler(bunch,tag,keywords)
  File "/home/jesse/leo-editor/leo/core/leoPlugins.py", line 249, in
callTagHandler
    result = handler(tag,keywords)
  File "/home/jesse/leo-editor/leo/plugins/mod_scripting.py", line
197, in onCreate
    sc.createAllButtons()
  File "/home/jesse/leo-editor/leo/plugins/mod_scripting.py", line
254, in createAllButtons
    self.createCommonButtons()
  File "/home/jesse/leo-editor/leo/plugins/mod_scripting.py", line
282, in createCommonButtons
    self.handleAtButtonSetting(h,script)
  File "/home/jesse/leo-editor/leo/plugins/mod_scripting.py", line
299, in handleAtButtonSetting
    b = self.createAtButtonFromSettingHelper
(h,script,statusLine,shortcut)
TypeError: createAtButtonFromSettingHelper() takes at least 6
arguments (5 given)

At this point I decided to try fixing the error.  I opened up
mod_scripting.py.  It was a pretty big file and I found myself wishing
I could view it in Leo.  Is there a way to do this?  I seem to
remember reading somewhere that it was possible to open a single
python file in Leo, but I can't remember how.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to