Terry Brown:
Many thanks Terry. The call to cmdr.frame.createFirstTreeNode() seems
to be the crucial operation required when creating a new Leo-Editor file
with leoBridge.
This works for me:
bridge = leoBridge.controller(gui='nullGui', verbose=False,
loadPlugins = False,readSettings = False)
cmdr = bridge.openLeoFile('/home/ldi/tmp/newFile.leo')
cmdr.frame.createFirstTreeNode()
ptrRoot = cmdr.rootPosition()
ptrDay = ptrRoot.insertAsLastChild()
Many thanks.
--
Segundo Bob
[email protected]
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.