def clear(self) -> None:
     """ remove all the items from the list and publishes the change notification """
     with self.lock:
         self.check_disposed()
         self._list.clear()
         self._onCollectionChanges(CollectionChange.Clear(self))
Пример #2
0
 def clear(self):
     """ Remove all elements from this ObservableSet. Publishes change notifications """
     with self.lock:
         self.check_disposed()
         self._set.clear()
         self._onCollectionChanges(CollectionChange.Clear(self))
Пример #3
0
 def clear(self):
     """ removes all items from the Observable dictionary and publishes Clear event"""
     with self.lock:
         self.check_disposed()
         self._dict.clear()
         self._onCollectionChanges(CollectionChange.Clear(self))