1
# ------------------------------------------------------------------------------
2
#
3
#  Copyright (c) 2006, Enthought, Inc.
4
#  All rights reserved.
5
#
6
#  This software is provided without warranty under the terms of the BSD
7
#  license included in LICENSE.txt and may be redistributed only
8
#  under the conditions described in the aforementioned license.  The license
9
#  is also available online at http://www.enthought.com/licenses/BSD.txt
10
#
11
#  Thanks for using Enthought open source!
12
#
13
#  Author: David C. Morrill
14
#  Date:   01/05/2006
15
#
16
# ------------------------------------------------------------------------------
17

18 0
""" Defines the tree-based Python value editor and the value editor factory,
19
    for the wxPython user interface toolkit.
20
"""
21

22

23
# FIXME: ToolkitEditorFactory is a proxy class defined here just for backward
24
# compatibility. The class has been moved to the
25
# traitsui.editors.value_editor file.
26 0
from traitsui.editors.value_editor import _ValueEditor, ToolkitEditorFactory
27

28 0
from .editor import Editor
29

30

31 0
class SimpleEditor(_ValueEditor, Editor):
32
    """ Returns the editor to use for simple style views.
33
    """
34

35
    #: Override the value of the readonly trait.
36 0
    readonly = False
37

38

39 0
class ReadonlyEditor(_ValueEditor, Editor):
40
    """ Returns the editor to use for readonly style views.
41
    """
42

43
    #: Override the value of the readonly trait.
44 0
    readonly = True

Read our documentation on viewing source code .

Loading