pymel.core.windows.Callback

Inheritance diagram of Callback

class Callback(func, *args, **kwargs)

Enables deferred function evaluation with ‘baked’ arguments. Useful where lambdas won’t work...

It also ensures that the entire callback will be be represented by one undo entry.

Example:

class CallbackErrorLog

CallbackErrorLog(callback, exception, trace, creationTrace)

callback

Alias for field number 0

creationTrace

Alias for field number 3

exception

Alias for field number 1

trace

Alias for field number 2

Callback.MAX_RECENT_ERRORS = 10
classmethod Callback.formatRecentError(index=0)
classmethod Callback.logCallbackError(callback, exception=None, trace=None, creationTrace=None)
classmethod Callback.printRecentError(index=0)
Callback.recentErrors = []

Previous topic

pymel.core.windows.windowPref

Next topic

pymel.core.windows.CallbackWithArgs

Core

Core Modules

Other Modules

This Page