sketchingpy.const
Global constants for sketchingpy.
License:
BSD
1"""Global constants for sketchingpy. 2 3License: 4 BSD 5""" 6 7RADIANS = 1 8DEGREES = 2 9 10ANGLE_MODES = { 11 'radians': RADIANS, 12 'degrees': DEGREES 13} 14 15CENTER = 11 16RADIUS = 12 17CORNER = 13 18CORNERS = 14 19 20SHAPE_MODES = { 21 'center': CENTER, 22 'radius': RADIUS, 23 'corner': CORNER, 24 'corners': CORNERS 25} 26 27LEFT = 21 28RIGHT = 22 29TOP = 23 30BASELINE = 24 31BOTTOM = 25 32 33ALIGN_OPTIONS = { 34 'left': LEFT, 35 'center': CENTER, 36 'right': RIGHT, 37 'top': TOP, 38 'baseline': BASELINE, 39 'bottom': BOTTOM 40} 41 42MOUSE_LEFT_BUTTON = 'leftMouse' 43MOUSE_RIGHT_BUTTON = 'rightMouse' 44 45KEYBOARD_LEFT_BUTTON = 'left' 46KEYBOARD_UP_BUTTON = 'up' 47KEYBOARD_RIGHT_BUTTON = 'right' 48KEYBOARD_DOWN_BUTTON = 'down' 49KEYBOARD_SPACE_BUTTON = 'space' 50KEYBOARD_CTRL_BUTTON = 'ctrl' 51KEYBOARD_ALT_BUTTON = 'alt' 52KEYBOARD_SUPER_BUTTON = 'super' 53KEYBOARD_SHIFT_BUTTON = 'shift' 54KEYBOARD_TAB_BUTTON = 'tab' 55KEYBOARD_HOME_BUTTON = 'home' 56KEYBOARD_END_BUTTON = 'end' 57KEYBOARD_RETURN_BUTTON = 'return' 58KEYBOARD_BACKSPACE_BUTTON = 'backspace'
RADIANS =
1
DEGREES =
2
ANGLE_MODES =
{'radians': 1, 'degrees': 2}
CENTER =
11
RADIUS =
12
CORNER =
13
CORNERS =
14
SHAPE_MODES =
{'center': 11, 'radius': 12, 'corner': 13, 'corners': 14}
LEFT =
21
RIGHT =
22
TOP =
23
BASELINE =
24
BOTTOM =
25
ALIGN_OPTIONS =
{'left': 21, 'center': 11, 'right': 22, 'top': 23, 'baseline': 24, 'bottom': 25}
MOUSE_LEFT_BUTTON =
'leftMouse'
MOUSE_RIGHT_BUTTON =
'rightMouse'
KEYBOARD_LEFT_BUTTON =
'left'
KEYBOARD_UP_BUTTON =
'up'
KEYBOARD_RIGHT_BUTTON =
'right'
KEYBOARD_DOWN_BUTTON =
'down'
KEYBOARD_SPACE_BUTTON =
'space'
KEYBOARD_CTRL_BUTTON =
'ctrl'
KEYBOARD_ALT_BUTTON =
'alt'
KEYBOARD_SUPER_BUTTON =
'super'
KEYBOARD_SHIFT_BUTTON =
'shift'
KEYBOARD_TAB_BUTTON =
'tab'
KEYBOARD_HOME_BUTTON =
'home'
KEYBOARD_END_BUTTON =
'end'
KEYBOARD_RETURN_BUTTON =
'return'
KEYBOARD_BACKSPACE_BUTTON =
'backspace'