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

« back to all changes in this revision

Viewing changes to traitsui/qt4/shell_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) 2011, 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
#-------------------------------------------------------------------------------
 
14
 
 
15
""" Editor that displays an interactive Python shell.
 
16
"""
 
17
 
 
18
#-------------------------------------------------------------------------------
 
19
#  Imports:
 
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.shell_editor file.
 
25
from traitsui.editors.shell_editor import \
 
26
    _ShellEditor as BaseShellEditor
 
27
 
 
28
from editor import Editor
 
29
 
 
30
#-------------------------------------------------------------------------------
 
31
#  'ShellEditor' class:
 
32
#-------------------------------------------------------------------------------
 
33
 
 
34
class _ShellEditor(BaseShellEditor, Editor):
 
35
    """ Editor that displays an interactive Python shell.
 
36
    """
 
37
 
 
38
    def init(self, parent):
 
39
        super(_ShellEditor, self).init(None)