enaml.widgets.multiline_field

Classes

MultilineField

A simple multiline editable text widget.

class enaml.widgets.multiline_field.MultilineField(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A simple multiline editable text widget.

text

The unicode text to display in the field.

read_only

Whether or not the field is read only.

auto_sync_text

Whether the text in the control should be auto-synchronized with the text attribute on the field. If this is True, the text will be updated every time the user edits the control. In order to be efficient, the toolkit will batch updates on a collapsing timer.

hug_width

Multiline fields expand freely in width and height by default.

proxy

A reference to the ProxyMultilineField object.

sync_text()[source]

Synchronize the text with the text in the control.

field_text()[source]

Get the text stored in the field control.

Depending on the state of the field, this text may be different than that stored in the ‘text’ attribute.

Returns

result – The unicode text stored in the field.

Return type

unicode