def __init__(self, *args, **kwargs): self._event_system = None Variable.__init__(self, *args, **kwargs) if self.event is not None: self.event.hook("start-tracking-changes", self._start_tracking) self.event.hook("object-deleted", self._detect_changes_and_stop)
def __init__(self, get_map, set_map, *args, **kwargs): self._get_map = get_map self._set_map = set_map Variable.__init__(self, *args, **kwargs)
def __init__(self, item_factory, *args, **kwargs): self._item_factory = item_factory Variable.__init__(self, *args, **kwargs) if self.event: self.event.hook("flush", self._detect_changes) self.event.hook("object-deleted", self._detect_changes)