enthought / traitsui

TraitsUI: Traits-capable windowing framework
http://docs.enthought.com/traitsui
Other
297 stars 95 forks source link

Make Qt WebEngine/WebKit an optional dependency for traitsui.api #1462

Open kitchoi opened 3 years ago

kitchoi commented 3 years ago

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:

Related:

kitchoi commented 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.