# enaml.stdlib.fields

Classes

`FloatField` | """ A Field that only accept floating point values.
`IntField` | """ A field that only accept integer inputs.
`RegexField` | """ A Field that accepts text validated by a regular expression.

class enaml.stdlib.fields.FloatField(parent=None, **kwargs)

  Bases: `Field`

  “”” A Field that only accept floating point values.

  “””

  __reduce_ex__(proto)

    An implementation of the reduce protocol.

    This method creates a reduction tuple for enamldef instances. It is not part of the public Enaml api.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.

class enaml.stdlib.fields.IntField(parent=None, **kwargs)

  Bases: `Field`

  “”” A field that only accept integer inputs.

  “””

  __reduce_ex__(proto)

    An implementation of the reduce protocol.

    This method creates a reduction tuple for enamldef instances. It is not part of the public Enaml api.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.

class enaml.stdlib.fields.RegexField(parent=None, **kwargs)

  Bases: `Field`

  “”” A Field that accepts text validated by a regular expression.

  “””

  __reduce_ex__(proto)

    An implementation of the reduce protocol.

    This method creates a reduction tuple for enamldef instances. It is not part of the public Enaml api.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.