user3391229
user3391229

Reputation: 818

is mayavi ready for enaml or stick with traits for gui design?

I (try to) write "fairly" complicated gui's that use Mayavi for the visualization piece, which is a significant portion for my application. Since Mayavi works with traitedVTK (tvtk), traitsui is a convenient medium for producing gui's.

However, most threads (that do not mention Mayavi) I have seen discussing the relative merits of enaml and traits seem to favor enaml. That seems to be the direction of Enthought as well, but obviously I could be wrong.

As I'm working on my project, I'm wondering, am I building something that is already outdated? If I somewhat value building code that uses framesworks that will be relevant in the future, should I be working with enaml instead? Is it trivial to move a mayavigui project from traits to enaml?

Upvotes: 0

Views: 139

Answers (2)

Chris Colbert
Chris Colbert

Reputation: 868

The Enthought guys have a library which helps with the interop of traitsui and Enaml. It includes a MayaviCanvas Enaml widget: https://github.com/enthought/traits-enaml

Upvotes: 1

Jonathan March
Jonathan March

Reputation: 5810

I can't speak for its authors, but at present traitsui is baked pretty deeply into mayavi. If you want to use mayavi, use traitsui. For a way to use traitsui but with more flexibility, see https://github.com/enthought/qt_binder

Upvotes: 3

Related Questions