I think I figured out a solution combining both methods as so
import leo.core.leoGui as leoGui
fn2='test2.leo'
nullGui = leoGui.nullGui("nullGui")
c2,frame = g.app.newLeoCommanderAndFrame(fileName=None,gui=nullGui)
c2.frame.createFirstTreeNode()
c2.save()
ok, frame = g.openWithFileName(fn2,c)
c3 = frame.c
c3.redraw()
But the c2.save() step opens a dialogue where I need to type in fn2
I want to pass fn2 to this step, but saveAs and saveTo also open the
dialogue box.
Is there a save that sets the saved outline file name?
--
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.