On Fri, Aug 23, 2019 at 1:57 AM Edward K. Ream <[email protected]> wrote:

#1289 <https://github.com/leo-editor/leo-editor/issues/1289> is a
> precondition for pyzo in Leo.  There was big progress yesterday.
>

A few more notes:

As of rev cf990e3, the new Outlines dock is always Qt's central widget (in
the gui branch, that is)  This seems fine, so perhaps we can eliminate the
@string central-dock-widget setting.

A subtlety: The Outlines dock is a *global* dock, but each of its tabs
contains *local* docks. This is as it must be.  Btw, pyzo's central widget
is *not* a dock at all, but within Leo it will be embedding in a global
Files dock.

Most pyzo docks *must* be global docks, for the following reasons:

- Most importantly, pyzo's code implicitly assumes they are all singletons.
- Initializing pyzo's Shells dock takes a long time. We don't want to do
that when creating a new outline!
- We don't want to force the user to rearrange all those pyzo docks when
creating a new Leo outline!

We could make an exception for pyzo's File Browser dock.  It would go into
the Tabs dock by default.  So each outline would control the visibility and
the location of the File Browser.  Otoh, it's probably just as well to keep
it as a global dock.

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/CAMF8tS3e_yDhMZCG_sxzpYVW0HdMX214Aw0qe3Eq-YOT2bTSJQ%40mail.gmail.com.

Reply via email to