1
#------------------------------------------------------------------------------
2
# Copyright (c) 2007, Riverbank Computing Limited
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
9
# Author: Riverbank Computing Limited
10
#------------------------------------------------------------------------------
12
""" Defines the tuple editor for the PyQt user interface toolkit.
15
#-------------------------------------------------------------------------------
17
#-------------------------------------------------------------------------------
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
29
#-------------------------------------------------------------------------------
30
# 'SimpleEditor' class:
31
#-------------------------------------------------------------------------------
33
class SimpleEditor ( BaseSimpleEditor, Editor ):
34
""" Simple style of editor for tuples.
36
The editor displays an editor for each of the fields in the tuple, based on
37
the type of each field.