def setPropertyDataSource(self, newDataSource):
        # Stops listening the old data source changes
        if (self._dataSource is not None
                and issubclass(self._dataSource.__class__,
                        prop.IValueChangeNotifier)):
            self._dataSource.removeListener(self,
                    prop.IValueChangeListener)

        # Sets the new data source
        self._dataSource = newDataSource

        # Listens the new data source if possible
        if (self._dataSource is not None
                and issubclass(self._dataSource.__class__,
                        prop.IValueChangeNotifier)):
            self._dataSource.addListener(self, prop.IValueChangeListener)
Sets the property as data-source for viewing.
dataset/ETHPy150Open rwl/muntjac/muntjac/ui/progress_indicator.py/ProgressIndicator.setPropertyDataSource