enthought/enaml — pull request #72 by WarrenWeckesser (2012-01-11 20:11:05+00:00)
Title: Range fields

With this set of changes, IntField, FloatField, LongField, HexField and OctalField have attributes low, high, allow_low and allow_high that can be set to restrict the values that are considered valid.

For a demo, run enaml/examples/stdlib/range_demo.py. The labels of the various fields include the type and valid range. Note that the valid range for `beta` depends on `beta_min` and `beta_max`.