1
#------------------------------------------------------------------------------
3
# Copyright (c) 2008, Enthought, Inc.
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
11
# Thanks for using Enthought open source!
13
# Author: David C. Morrill
16
#------------------------------------------------------------------------------
17
""" Defines the key binding editor for use with the KeyBinding class. This is a
18
specialized editor used to associate a particular key with a control (i.e., the
22
#-------------------------------------------------------------------------------
24
#-------------------------------------------------------------------------------
26
from __future__ import absolute_import
28
# FIXME: Import from the api.py file when it has been added.
29
from ..basic_editor_factory import BasicEditorFactory
31
from ..toolkit import toolkit_object
33
# Callable which returns the editor to use in the ui.
34
def key_binding_editor(*args, **traits):
35
return toolkit_object('key_binding_editor:KeyBindingEditor')(*args,
38
#-------------------------------------------------------------------------------
39
# Create the editor factory object:
40
#-------------------------------------------------------------------------------
41
KeyBindingEditor = ToolkitEditorFactory = BasicEditorFactory(klass = key_binding_editor)
43
### EOF ------------------------------------------------------------------------