~ubuntu-branches/ubuntu/trusty/mayavi2/trusty

« back to all changes in this revision

Viewing changes to docs/source/mayavi/auto/multiple_mlab_scene_models.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-07-09 01:18:36 UTC
  • mfrom: (1.1.10 upstream) (2.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110709011836-fha21zirlgkqh92s
Tags: 4.0.0-1
* New upstream release
* debian/control:
  - Bump Standards-Version to 3.9.2
  - Set X-Python-Version: 2.6, fixes FTBFS (Closes: #625148)
  - Update Depends
* Update debian/watch file
* Cleanup debian/rules file

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
and pass it as a keyword argument to the mlab functions.
11
11
 
12
12
For more examples on embedding mlab scenes in dialog, see also:
13
 
the examples :ref:`example_mlab_interactive_dialog`, and 
14
 
:ref:`example_lorenz_ui`, as well as the section of the user manual 
 
13
the examples :ref:`example_mlab_interactive_dialog`, and
 
14
:ref:`example_lorenz_ui`, as well as the section of the user manual
15
15
:ref:`embedding_mayavi_traits`.
16
16
"""
17
17
import numpy as np
18
18
 
19
 
from enthought.traits.api import HasTraits, Instance, Button, \
 
19
from traits.api import HasTraits, Instance, Button, \
20
20
    on_trait_change
21
 
from enthought.traits.ui.api import View, Item, HSplit, Group
 
21
from traitsui.api import View, Item, HSplit, Group
22
22
 
23
 
from enthought.mayavi import mlab
24
 
from enthought.mayavi.core.ui.api import MlabSceneModel, SceneEditor
 
23
from mayavi import mlab
 
24
from mayavi.core.ui.api import MlabSceneModel, SceneEditor
25
25
 
26
26
 
27
27
class MyDialog(HasTraits):
51
51
    view = View(HSplit(
52
52
                  Group(
53
53
                       Item('scene1',
54
 
                            editor=SceneEditor(), height=250, 
 
54
                            editor=SceneEditor(), height=250,
55
55
                            width=300),
56
 
                       'button1', 
 
56
                       'button1',
57
57
                       show_labels=False,
58
58
                  ),
59
59
                  Group(
60
60
                       Item('scene2',
61
 
                            editor=SceneEditor(), height=250, 
 
61
                            editor=SceneEditor(), height=250,
62
62
                            width=300, show_label=False),
63
 
                       'button2', 
 
63
                       'button2',
64
64
                       show_labels=False,
65
65
                  ),
66
66
                ),