pyface.fields.i_text_field module

The text field interface.

class pyface.fields.i_text_field.ITextField

Bases: pyface.fields.i_field.IField

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

Bases: traits.has_traits.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.