File: api.py

package info (click to toggle)
python-enable 3.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,392 kB
  • ctags: 17,135
  • sloc: cpp: 79,151; python: 29,601; makefile: 2,926; sh: 43
file content (63 lines) | stat: -rw-r--r-- 2,660 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
""" Enable is an interactive graphical component framework built on top of Kiva.

See https://www.enthought.com/enthought/wiki/EnableProject
"""

# Major package imports
# TODO - Add basic comments for the names being imported from base and enable_traits
from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \
    TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, str_to_font, filled_rectangle, \
    empty_rectangle, intersect_bounds

from enable_traits import basic_sequence_types, sequence_types, pointer_shapes, \
     CURSOR_X, CURSOR_Y, cursor_styles, TraitImage, border_size_editor, font_trait, \
     bounds_trait, ComponentMinSize, ComponentMaxSize, Pointer, cursor_style_trait, \
     engraving_trait, spacing_trait, padding_trait, margin_trait, border_size_trait, \
     image_trait, string_image_trait, TimeInterval, Stretch, NoStretch, LineStyle, \
     LineStyleEditor

from colors import color_table, transparent_color, ColorTrait, black_color_trait, \
                   white_color_trait, transparent_color_trait, ColorEditorFactory

from markers import MarkerTrait, marker_trait, MarkerNameDict, marker_names, \
    SquareMarker, CircleMarker, TriangleMarker, Inverted_TriangleMarker, \
    PlusMarker, CrossMarker, DiamondMarker, DotMarker, PixelMarker, \
    CustomMarker, AbstractMarker

from events import drag_event_trait, key_event_trait, mouse_event_trait, \
    BasicEvent, BlobEvent, BlobFrameEvent, DragEvent, KeyEvent, MouseEvent
from interactor import Interactor
from base_tool import BaseTool, KeySpec

from abstract_overlay import AbstractOverlay
from canvas import Canvas
from component import Component
from container import Container
from coordinate_box import CoordinateBox
from component_editor import ComponentEditor
from overlay_container import OverlayContainer

# Breaks code that does not use numpy
from label import Label

from graphics_context import GraphicsContextEnable, ImageGraphicsContextEnable

# Old Enable classes and widgets
from abstract_window import AbstractWindow
#from controls import LabelTraits, Label, CheckBox, Radio

from native_scrollbar import NativeScrollBar
from compass import Compass
from scrolled import Scrolled
from slider import Slider
from text_field_style import TextFieldStyle
from text_field import TextField
from text_field_grid import TextFieldGrid
from viewport import Viewport
from window import Window

# subpackage imports
from image.api import Image, DraggableImage, Inspector, ColorChip
#from image_title import ImageTitle
#from drawing_canvas import GriddedCanvas, GuideLine, SelectionFrame
from primitives.api import Annotater, Box, Line, Polygon