1# ------------------------------------------------------------------------------ 2# 3# Copyright (c) 2012, 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: Ioannis Tziakos 14# Date: 11 Jan 2012 15# 16# ------------------------------------------------------------------------------ 17 18""" Defines the various text editors for the wxPython user interface toolkit. 19 The module is mainly a place-folder for TextEditor factories that have 20 been augmented to also listen to changes in the items of the list object. 21 22""" 23 24 25from .text_editor import SimpleEditor as WXSimpleEditor 26from .text_editor import CustomEditor as WXCustomEditor 27from .text_editor import ReadonlyEditor as WXReadonlyEditor 28from ..editors.csv_list_editor import _prepare_method, _dispose_method 29 30 31class SimpleEditor(WXSimpleEditor): 32 """ Simple Editor style for CSVListEditor. """ 33 34 prepare = _prepare_method 35 dispose = _dispose_method 36 37 38class CustomEditor(WXCustomEditor): 39 """ Custom Editor style for CSVListEditor. """ 40 41 prepare = _prepare_method 42 dispose = _dispose_method 43 44 45class ReadonlyEditor(WXReadonlyEditor): 46 """ Readonly Editor style for CSVListEditor. """ 47 48 prepare = _prepare_method 49 dispose = _dispose_method 50 51 52TextEditor = SimpleEditor 53