File: README.rst

package info (click to toggle)
python-enable 4.5.1-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,356 kB
  • sloc: cpp: 57,287; python: 26,955; makefile: 243; sh: 44
file content (99 lines) | stat: -rw-r--r-- 3,757 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
=========================================
enable: low-level drawing and interaction
=========================================

http://github.enthought.com/enable

.. image:: https://travis-ci.org/enthought/enable.svg?branch=master
   :target: https://travis-ci.org/enthought/enable
   :alt: Build status

.. image:: https://coveralls.io/repos/enthought/enable/badge.png
   :target: https://coveralls.io/r/enthought/enable
   :alt: Coverage status

The Enable *project* provides two related multi-platform *packages* for drawing
GUI objects.

- **Enable**: An object drawing library that supports containment and event
  notification.
- **Kiva**: A multi-platform DisplayPDF vector drawing engine.

Enable
------

The Enable package is a multi-platform object drawing library built on top of
Kiva. The core of Enable is a container/component model for drawing and event
notification. The core concepts of Enable are:

- Component
- Container
- Events (mouse, drag, and key events)

Enable provides a high-level interface for creating GUI objects, while
enabling a high level of control over user interaction. Enable is a supporting
technology for the Chaco and BlockCanvas projects.


Kiva
----

Kiva is a multi-platform DisplayPDF vector drawing engine that supports
multiple output backends, including Windows, GTK, and Macintosh native
windowing systems, a variety of raster image formats, PDF, and Postscript.

DisplayPDF is more of a convention than an actual specification. It is a
path-based drawing API based on a subset of the Adobe PDF specification.
Besides basic vector drawing concepts such as paths, rects, line sytles, and
the graphics state stack, it also supports pattern fills, antialiasing, and
transparency. Perhaps the most popular implementation of DisplayPDF is
Apple's Quartz 2-D graphics API in Mac OS X.

Kiva Features
`````````````
Kiva currently implements the following features:

- paths and compiled paths; arcs, bezier curves, rectangles
- graphics state stack
- clip stack, disjoint rectangular clip regions
- raster image blitting
- arbitrary affine transforms of the graphics context
- bevelled and mitered joins
- line width, line dash
- Freetype or native fonts
- RGB, RGBA, or grayscale color depths
- transparency

Prerequisites
-------------

You must have the following libraries installed before building
the Enable/Kiva project:

- `Setuptools <https://pypi.python.org/pypi/setuptools>`_
- `Numpy <http://pypi.python.org/pypi/numpy>`_
- `SWIG <http://www.swig.org/>`_
- (on Linux) X11-devel (development tools for X11)
- (on Mac OS X) `Cython <http://www.cython.org>`_

Enable/Kiva also have the following requirements:

.. rubric:: Runtime:

- `Numpy <http://pypi.python.org/pypi/numpy>`_
- `PIL <http://www.pythonware.com/products/pil>`_
- `traits 4.5.0 <https://pypi.python.org/pypi/traits>`_
- `traitsui 4.4.0 <https://pypi.python.org/pypi/traitsui>`_
- `pyface 4.5.0 <https://pypi.python.org/pypi/pyface>`_

.. rubric:: Optional:

- `apptools 4.3.0 <https://pypi.python.org/pypi/apptools/>`_
- (Qt backend) `PySide <https://pypi.python.org/pypi/PySide>`_ or `PyQt4 <https://pypi.python.org/pypi/PyQt4>`_
- (WX backend) `WxPython version 2.8.11.0 <https://pypi.python.org/pypi/wxPython/2.8.11.0>`_
- (GL backend) `pyglet version 1.1.4 <https://bitbucket.org/pyglet/pyglet/get/pyglet-1.1.4.zip>`_
- (GL backend) `pygarrayimage <https://pypi.python.org/pypi/pygarrayimage>`_
- (SVG backend) `PyParsing <https://pypi.python.org/pypi/pyparsing>`_
- (PDF backend) `ReportLab Toolkit version 3.1 <http://www.reportlab.org/rl_toolkit.html/>`_
- (Cairo backend) `PyCairo 1.10.0 <http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2>`_
- (Constrained layout) `kiwisolver <https://pypi.python.org/pypi/kiwisolver>`_