direct.task.MiniTask

from direct.task.MiniTask import MiniTask, MiniTaskManager

This module implements a minimum task manager. It is similar in principle to the full-featured task manager implemented in Task.py, but it has a sharply reduced feature set–completely bare-bones, in fact–and it is designed to be a pure-python implementation that does not require any C++ Panda support, so that it can be loaded before Panda has been fully downloaded.

Inheritance diagram

Inheritance diagram of direct.task.MiniTask

class MiniTask(callback)[source]

Bases: object

__init__(self, callback)[source]
cont = 1
done = 0
class MiniTaskManager[source]

Bases: object

__init__(self)[source]
add(self, task, name)[source]
remove(self, task)[source]
run(self)[source]
step(self)[source]
stop(self)[source]