exopy.measurement.monitors.text_monitor.rules.base_views module

Base classes for rules editing widgets.

class exopy.measurement.monitors.text_monitor.rules.base_views.BaseRuleView(parent=None, **kwargs)

Bases: enaml.widgets.container.Container

Base class for defining custom widgets to edit a rule.

name_and_desc
plugin

A value which allows objects of a given type or types.

Values will be tested using the PyObject_IsInstance C API call. This call is equivalent to isinstance(value, kind) and all the same rules apply.

The value of an Instance may be set to None.

rule

A value which allows objects of a given type or types.

Values will be tested using the PyObject_IsInstance C API call. This call is equivalent to isinstance(value, kind) and all the same rules apply.

The value of an Instance may be set to None.

validate
class exopy.measurement.monitors.text_monitor.rules.base_views.DescriptionEditionPopup(parent=None, **kwargs)

Bases: enaml.widgets.popup_view.PopupView

Popup view used to edit the description of a rule.

rule

A value which allows objects of a given type or types.

Values will be tested using the PyObject_IsInstance C API call. This call is equivalent to isinstance(value, kind) and all the same rules apply.

The value of an Instance may be set to None.

class exopy.measurement.monitors.text_monitor.rules.base_views.RuleIdValidator

Bases: enaml.validator.Validator

Validator checking that the name provided by the user does not already exist.

ids

A member which will coerce a value to a given instance type.

Unlike Typed or Instance, a Coerced value is not intended to be set to None.

message

A value of type unicode.

By default, plain strings will be promoted to unicode strings. Pass strict=True to the constructor to enable strict unicode checking.

validate(text)

Check that the proposed id does not already exist.