pyface.fields.i_field module

The field interface.

class pyface.fields.i_field.IField(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: ILayoutWidget

The field interface.

A field is a widget that displays a value and (potentially) allows a user to interact with it.

value = Any()

The value held by the field.

alignment = Alignment()

The alignment of the field’s content.

class pyface.fields.i_field.MField[source]

Bases: HasTraits

The field mix-in.

value = Any()

The value held by the field.

alignment = Alignment()

The alignment of the text in the field.

create(parent=None)[source]

Creates the toolkit specific control.

This method should create the control and assign it to the :py:attr:control trait.