API Reference for Enthought Tool Suite 3.0.1
Merge ContextModified event 'b' into ContextModified event 'a'.
Assumes that 'b' is an event generated immediately after event 'a'. This entails, for example, that 'a.added' and 'b.added' are disjoint, since it doesn't make sense for the same name to be added twice in succession.
Merge TraitDictEvent 'b' into TraitDictEvent 'a'.
dict_ should be a mapping object that gives the current value of 'changed' items in the events.
Assumes that 'b' is an event generated immediately after event 'a'. This entails, for example, that 'a.added.keys()' and 'b.added.keys()' are disjoint, since it doesn't make sense for the same name to be added twice in succession.
Method decorator that merges all of a method's events into one.
Useful for methods like 'dict.update' that are easily implemented in terms of smaller methods (like 'dict.__setitem__'), each call to which will fire an event.
Requires an object that defers its events with a 'defer_events' flag.
| Local name | Refers to |
|---|---|
| disjoint | enthought.util.sequence.disjoint |
© Copyright 2002-2008 Enthought, Inc.