direct.showbase.DirectObject

from direct.showbase.DirectObject import DirectObject

Defines the DirectObject class, a convenient class to inherit from if the object needs to be able to respond to events.

Inheritance diagram

Inheritance diagram of direct.showbase.DirectObject

class DirectObject[source]

Bases: object

This is the class that all Direct/SAL classes should inherit from

accept(self, event, method, extraArgs=[])[source]
acceptOnce(self, event, method, extraArgs=[])[source]
addTask(self, *args, **kwargs)[source]
detectLeaks(self)[source]
doMethodLater(self, *args, **kwargs)[source]
getAllAccepting(self)[source]
ignore(self, event)[source]
ignoreAll(self)[source]
isAccepting(self, event)[source]
isIgnoring(self, event)[source]
removeAllTasks(self)[source]
removeTask(self, taskOrName)[source]