Actually ... my suggestion to remove the gui argument:

> c2,frame = g.app.newLeoCommanderAndFrame(fileName='NewOutline')

does not look like a good idea. Editing the outline produces unusual
behavior and I see no menu items in the frame.
I guess gui needs to be set but I do not see how.  I think these are
the minimum  steps that are necessary:

fn2='NewOutline.leo'
nullGui = leoGui.nullGui("nullGui")
c2, frame2= g.app.newLeoCommanderAndFrame(fileName=fn2,gui=nullGui)
c2.save()
ok, frame2 = g.openWithFileName(fn2,c2)
c2 = frame2.c

and then c2 refers to the new outline.


-- 
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