pymel.core.windows.Callback

digraph inheritanced880e6c393 {
rankdir=TB;
ranksep=0.15;
nodesep=0.15;
size="8.0, 12.0";
  "Callback" [fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,URL="#pymel.core.windows.Callback",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8];
}

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:

Previous topic

pymel.core.windows.windowPref

Next topic

pymel.core.windows.CallbackWithArgs

Core

Core Modules

Other Modules

This Page