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 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# FIXME: ToolkitEditorFactory is a proxy class defined here just for backward 23# compatibility. The class has been moved to the 24# traitsui.editors.array_editor file. 25from traitsui.editors.array_editor import ( 26 SimpleEditor as BaseSimpleEditor, 27 ToolkitEditorFactory, 28) 29 30from .editor import Editor 31 32# ------------------------------------------------------------------------- 33# 'SimpleEditor' class: 34# ------------------------------------------------------------------------- 35 36 37class 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 46class ReadonlyEditor(SimpleEditor): 47 48 #: Set the value of the readonly trait. 49 readonly = True 50