On Tuesday, November 26, 2019 at 3:31:23 PM UTC-6, Félix wrote:

leoBridge gives back a commander upon opening a leo file. This is great.
>

> But now I want...to Close a leo file. (to subsequently open another)
>

After:

controller = leoBridge.controller(...)
g = controller.globals()
c = controller.openLeoFile(path)

c is a Commander object.  Just call c.close()

You can have multiple commanders open at once:

commanders = [controller.openLeoFile(z) for z in paths]

Edward

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5271e6c2-5e69-4444-9597-bdd334dffe17%40googlegroups.com.

Reply via email to