pyface.fields.i_text_field module

The text field interface.

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

Bases: IEditableField

The text field interface.

value = Str()

The value held by the field.

update_text = Enum("auto", "editing_finished")

Should the text trait be updated on user edits, or when done editing.

placeholder = Str()

Placeholder text for an empty field.

echo = Enum("normal", "password")

Display typed text, or one of several hidden “password” modes.

read_only = Bool()

Whether or not the field is read-only.

class pyface.fields.i_text_field.MTextField[source]

Bases: HasTraits

The text field mix-in.

value = Str()

The value held by the field.

update_text = Enum("auto", "editing_finished")

Should the value be updated on every keystroke, or when done editing.

placeholder = Str()

Placeholder text for an empty field.

echo = Enum("normal", "password")

Display typed text, or one of several hidden “password” modes.

read_only = Bool()

Whether or not the field is read-only.