~ubuntu-branches/ubuntu/utopic/python-traitsui/utopic

« back to all changes in this revision

Viewing changes to traitsui/qt4/tuple_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
# Copyright (c) 2007, Riverbank Computing Limited
 
3
# All rights reserved.
 
4
#
 
5
# This software is provided without warranty under the terms of the BSD license.
 
6
# However, when used with the GPL version of PyQt the additional terms described in the PyQt GPL exception also apply
 
7
 
 
8
#
 
9
# Author: Riverbank Computing Limited
 
10
#------------------------------------------------------------------------------
 
11
 
 
12
""" Defines the tuple editor for the PyQt user interface toolkit.
 
13
"""
 
14
 
 
15
#-------------------------------------------------------------------------------
 
16
#  Imports:
 
17
#-------------------------------------------------------------------------------
 
18
 
 
19
 
 
20
# FIXME: ToolkitEditorFactory is a proxy class defined here just for backward
 
21
# compatibility. The class has been moved to the
 
22
# traitsui.editors.tuple_editor file.
 
23
from traitsui.editors.tuple_editor \
 
24
    import SimpleEditor as BaseSimpleEditor, ToolkitEditorFactory
 
25
 
 
26
from editor \
 
27
    import Editor
 
28
 
 
29
#-------------------------------------------------------------------------------
 
30
#  'SimpleEditor' class:
 
31
#-------------------------------------------------------------------------------
 
32
 
 
33
class SimpleEditor ( BaseSimpleEditor, Editor ):
 
34
    """ Simple style of editor for tuples.
 
35
 
 
36
    The editor displays an editor for each of the fields in the tuple, based on
 
37
    the type of each field.
 
38
    """
 
39
    pass