pyface.fields.i_field module

The text field interface.

class pyface.fields.i_field.IField

Bases: pyface.i_widget.IWidget

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.

tooltip = Str()

A tooltip for the field.

context_menu = Instance("pyface.action.menu_manager.MenuManager")

An optional context menu for the field.

show_context_menu(x, y)

Create and show the context menu at a position.

class pyface.fields.i_field.MField

Bases: traits.has_traits.HasTraits

The field mix-in.

value = Any()

The value held by the field.

tooltip = Str()

A tooltip for the field.

context_menu = Instance("pyface.action.menu_manager.MenuManager")

An optional context menu for the field.