~ubuntu-branches/ubuntu/trusty/python-traitsui/trusty

« back to all changes in this revision

Viewing changes to traitsui/qt4/array_editor.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-07-09 13:57:39 UTC
  • Revision ID: james.westby@ubuntu.com-20110709135739-x5u20q86huissmn1
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#------------------------------------------------------------------------------
 
2
#
 
3
#  Copyright (c) 2005, Enthought, Inc.
 
4
#  All rights reserved.
 
5
#
 
6
#  This software is provided without warranty under the terms of the BSD
 
7
#  license included in enthought/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/10/2006
 
15
#
 
16
#------------------------------------------------------------------------------
 
17
 
 
18
""" Defines array editors for the PyQt user interface toolkit.
 
19
"""
 
20
 
 
21
#-------------------------------------------------------------------------------
 
22
#  Imports:
 
23
#-------------------------------------------------------------------------------
 
24
# FIXME: ToolkitEditorFactory is a proxy class defined here just for backward
 
25
# compatibility. The class has been moved to the
 
26
# traitsui.editors.array_editor file.
 
27
from traitsui.editors.array_editor \
 
28
    import SimpleEditor as BaseSimpleEditor, ToolkitEditorFactory
 
29
 
 
30
from editor \
 
31
    import Editor
 
32
 
 
33
#-------------------------------------------------------------------------------
 
34
#  'SimpleEditor' class:
 
35
#-------------------------------------------------------------------------------
 
36
 
 
37
class SimpleEditor ( BaseSimpleEditor, Editor ):
 
38
    """ Simple style of editor for arrays.
 
39
    """
 
40
 
 
41
    # FIXME: This class has been re-defined here simply so it inherits from the
 
42
    # PyQt Editor class.
 
43
    pass
 
44
 
 
45
#-------------------------------------------------------------------------------
 
46
#  'ReadonlyEditor' class:
 
47
#-------------------------------------------------------------------------------
 
48
 
 
49
class ReadonlyEditor(SimpleEditor):
 
50
 
 
51
    # Set the value of the readonly trait.
 
52
    readonly = True
 
53
 
 
54
### EOF #######################################################################