Introduction to Traits
Presented by Corran Webster
The Traits project allows you to simply add validation, initialization, delegation, notification and a graphical user interface to Python object attributes. In this tutorial we will explore the Traits toolset and learn how to dramatically reduce the amount of boilerplate code you write, do rapid GUI application development, and understand the ideas which underly other parts of the Enthought Tool Suite (such as MayaVi and Chaco plotting toolkits).
Traits and the Enthought Tool Suite are open source projects licensed under a BSD-style license.
Intermediate to advanced Python programmers
- Introduction to ETS and Traits
- Basic Traits + Trait types + Property Traits + Trait Validation
- Traits UI + Basic Traits UI + Tour of the Trait editors + Advanced Trait editors
- Notification in Traits + Static notification + Dynamic notification
- Advanced Traits UI + Customizing Views, Groups and Items + Traits UI Handlers + Buttons, Menus and Toolbars + Drag and Drop
Laptop recommended (any major OS is fine), with the following software installed:
- Python 2.5 or 2.6 (www.python.org)
- Either wxPython (http://www.wxpython.org/) or PyQt (http://www.riverbankcomputing.co.uk/software/pyqt/intro)
- Numpy and Scipy (http://www.scipy.org)
- Enthought Tool Suite 3.2 or higher (http://code.enthought.com/projects)
All required software can be obtained by installing the free trial version of the Enthought Python Distribution v5 or later (http://www.enthought.com/products/epd.php).