enthought / mayavi
1 0
from traitsui.api import View, HGroup, Item
2 0
from tvtk.tvtk_base import TVTKBaseHandler
3

4 0
view = View((['generate_texture_coordinates'], ['scalar_mode'],
5
    HGroup(Item('u_resolution', label = 'u'),
6
          Item('v_resolution', label = 'v'),
7
          Item('w_resolution', label = 'w'),
8
          label = 'Resolution', show_border = True)),
9
    handler = TVTKBaseHandler,
10
    title='Edit ParametricFunctionSource properties', scrollable=True,
11
    buttons=['OK', 'Cancel'])
12

13

Read our documentation on viewing source code .

Loading