Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
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 |
""" 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 |
from traitsui.editors.value_editor import _ValueEditor, ToolkitEditorFactory |
|
27 |
|
|
28 |
from .editor import Editor |
|
29 |
|
|
30 |
|
|
31 |
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 |
readonly = False |
|
37 |
|
|
38 |
|
|
39 |
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 |
readonly = True |
Read our documentation on viewing source code .