(self, another_property, map_function=None)
| 41 | return self._value |
| 42 | |
| 43 | def bind(self, another_property, map_function=None): |
| 44 | def binder(old_value, new_value): |
| 45 | if map_function: |
| 46 | value = map_function(new_value) |
| 47 | else: |
| 48 | value = new_value |
| 49 | |
| 50 | self._set_internal(value) |
| 51 | |
| 52 | another_property.subscribe(binder) |
| 53 | binder(None, another_property.get()) |
| 54 | |
| 55 | |
| 56 | class ObservableList(UserList): |