pyface.data_view.value_types.no_value module

class pyface.data_view.value_types.no_value.NoValue[source]

Bases: pyface.data_view.abstract_value_type.AbstractValueType

A ValueType that has no data in any channel.

has_editor_value(model, row, column)[source]

Return whether or not the value can be edited.

The default implementation is that cells that can be set are editable.

Parameters
  • model (AbstractDataModel) – The data model holding the data.

  • row (sequence of int) – The row in the data model being queried.

  • column (sequence of int) – The column in the data model being queried.

Returns

has_editor_value – Whether or not the value is editable.

Return type

bool

has_text(model, row, column)[source]

Whether or not the value has a textual representation.

The default implementation returns True if get_text returns a non-empty value.

Parameters
  • model (AbstractDataModel) – The data model holding the data.

  • row (sequence of int) – The row in the data model being queried.

  • column (sequence of int) – The column in the data model being queried.

Returns

has_text – Whether or not the value has a textual representation.

Return type

bool

has_image(model, row, column)[source]

Whether or not the value has an image associated with it.

The default implementation returns True if get_image returns a non-None value.

Parameters
  • model (AbstractDataModel) – The data model holding the data.

  • row (sequence of int) – The row in the data model being queried.

  • column (sequence of int) – The column in the data model being queried.

Returns

has_image – Whether or not the value has an image associated with it.

Return type

bool

has_tooltip(model, row, column)[source]

Whether or not the value has a tooltip.

The default implementation returns True if get_tooltip returns a non-empty value.

Parameters
  • model (AbstractDataModel) – The data model holding the data.

  • row (sequence of int) – The row in the data model being queried.

  • column (sequence of int) – The column in the data model being queried.

Returns

has_tooltip – Whether or not the value has a textual representation.

Return type

bool

pyface.data_view.value_types.no_value.no_value = <pyface.data_view.value_types.no_value.NoValue object>

Standard instance of the NoValue class, since it has no state.