Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.08 KB

ex_observe_model_signal.rst

File metadata and controls

31 lines (22 loc) · 1.08 KB

Observe Model Signal Example

An example which demonstrates how to observe a model signal.

This examples uses a model with a signal to notify listeners about in place changes to a list. This pattern is interesting for the times when a ContainerList would emit too many synchronous notifications. A common example is reordering the elements in a list.

Tip

To see this example in action, download it from observe_model_signal <../../../examples/functions/observe_model_signal.enaml> and run:

$ enaml-run observe_model_signal.enaml

Screenshot

image

Example Enaml Code

../../../examples/functions/observe_model_signal.enaml