Doing this always ties you to a GUI toolkit. That's the point: to embed the Traits UI panel into a larger, non-Traits GUI application that uses the desired GUI toolkit directly. The details outside of Traits are dependent on the GUI toolkit, naturally. If you aren't building a larger application that directly uses the GUI toolkit, you can ignore this functionality.
Are you instead asking how to build a Traits UI that happens to embed the full traits_view
of another instance? In that case, you want to use a InstanceEditor
with style="custom"
. Here is the code from the example in the linked documentation.