

.. _example_mlab_traits_ui:

Mlab traits ui example
--------------------------------------------

A simple example of how to use mayavi.mlab inside a traits UI dialog.

This example uses traitsUI (
`traitsUI <http://code.enthought.com/projects/traits/>`_ ) to create a
the simplest possible dialog: a single Mayavi scene in a window.


**Python source code:** :download:`mlab_traits_ui.py`

.. literalinclude:: mlab_traits_ui.py
    :lines: 8-


    