On Sat, Feb 25, 2012 at 7:55 PM, Kent Tenney <[email protected]> wrote:
> When running my 'session' script which opens a list of leo files::
> File "/usr/fetching/leo-editor/leo/core/leoCommands.py", line 295, in
> initObjects
> self.frame = gui.createLeoFrame(c,title)
> AttributeError: 'Commands' object has no attribute 'createLeoFrame'
The fix, I suspect, is on the trunk at rev 5018.
When I cleaned away some unused arguments to g.openWithFileName I
thoughtlessly changed the order of the old_c and gui arguments. So if
your script doesn't use keyword arguments to specify old_c, Leo
thought that you are giving it a gui argument.
The fix was simply to define g.openWithFileName as follows::
def openWithFileName(fileName,old_c=None,gui=None)
Please let me know how this works for you.
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.