1
#------------------------------------------------------------------------------
2
# Copyright (c) 2011, Enthought, Inc.
5
# This software is provided without warranty under the terms of the BSD
6
# license included in enthought/LICENSE.txt and may be redistributed only
7
# under the conditions described in the aforementioned license. The license
8
# is also available online at http://www.enthought.com/licenses/BSD.txt
9
# Thanks for using Enthought open source!
10
#------------------------------------------------------------------------------
12
from __future__ import absolute_import
17
from ..toolkit_constants import pointer_names, key_names
19
DRAG_RESULTS_MAP = { "error": wx.DragError,
24
"cancel": wx.DragCancel }
26
# Map from pointer shape name to pointer shapes:
36
wx.CURSOR_LEFT_BUTTON,
38
wx.CURSOR_MIDDLE_BUTTON,
40
wx.CURSOR_PAINT_BRUSH,
43
wx.CURSOR_POINT_RIGHT,
44
wx.CURSOR_QUESTION_ARROW,
45
wx.CURSOR_RIGHT_ARROW,
46
wx.CURSOR_RIGHT_BUTTON,
61
if len(pointer_names) != len(pointer_shapes):
62
warnings.warn("The WX toolkit backend pointer map is out of sync!")
64
POINTER_MAP = dict(zip(pointer_names, pointer_shapes))
66
# Map from wxPython special key names into Enable key names:
137
if len(key_symbols) != len(key_names):
138
warnings.warn("The WX toolkit backend keymap is out of sync!")
140
KEY_MAP = dict(zip(key_symbols, key_names))