Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/m/o/modrana-HEAD/modules/mod_notification.py   modrana(Download)
            # replace the task with updated one
            self._tasks[taskName] = (status, progress)
        self.tasksChanged(self._tasks)
        if status:
            self._startWorkInProgressOverlay()
            # replace the task with updated one
            self._tasks[taskName] = (status, progress)
        self.tasksChanged(self._tasks)
        if progress is not None:
            self._startWorkInProgressOverlay()
            try:
                del self._tasks[taskName]
                self.tasksChanged(self._tasks)
            except KeyError:
                print("notification: error, can't remove unknown task: %s" % taskName)