Open kitchoi opened 3 years ago
Note that there exists traitsui.editors.api
which contains a subset of traitsui.api
. This issue probably applies to traitsui.editors.api
as well.
That said, offline discussioin suggests that traitsui.api
is recommended over traitsui.editors.api
.
This issue is for making Qt WebEngine/WebKit an optional dependency of
traitsui.api
such that this module can still be used as the convenient entry point when (1) HTMLEditor is not needed (2) Qt is required but Qt WebEngine/WebKit are not available.More specifically, this can be done by making HTMLEditor an optional feature of
traitsui.api
conditional on whether Qt is used and WebEngine/WebKit is available.Motivation:
Context:
traitsui.api
is provided for downstream projects to import various features of TraitsUI. This issue is only about the API module and keeping it convenient. Whether importingtraitsui.editors.html_editor
should fail when the web dependencies are missing is an orthogonal matter.Related:
traitsui.api
. Currently a warning is emitted but it does seem noisy (see https://github.com/enthought/traitsui/issues/731)pyface.api
as well, see https://github.com/enthought/pyface/pull/796 (and its referenced issues)