Jack Liddle
A quick tutorial on Traits, Traits UI and Chaco PDF Print E-mail
Written by Administrator   
Sunday, 16 August 2009 17:09

Traits is a Python package from Enthought.  Traits allows us to easily give our variable an explicit type with optional bounds checking(this helps us to catch bugs as we develop our software).  Traits supports reactive programming, which Wikipedia defines as "Reactive programming is a programming paradigm oriented around data flows and the propagation of change.".   This sounds like exactly what we wish to do when writing a scientific application.  Chaco is a visualisation package from Enthought, which produces excellent plots and integrates well with Traits.

This tutorial begins with a quick introduction to Traits and then presents and discusses a simple application.  This application will present the user with a graph and three sliders.  The sliders will set the coefficients of a polynomial.  The resulting polynomial will be displayed and updated as the sliders are moved.


Last Updated on Sunday, 16 August 2009 20:51