pymel.core.language.waitCursor

waitCursor(*args, **kwargs)

This command sets/resets a wait cursor for the entire Maya application. This works as a stack, such that for each waitCursor -state oncommand executed there should be a matching waitCursor -state offcommand pending. Warning:If a script fails that has turned the wait cursor on, the wait cursor may be left on. You need to turn it off manually from the command line by entering and executing the command ‘waitCursor -state off’.

Flags:

Long Name / Short Name Argument Types Properties
state / st bool ../../../_images/create.gif ../../../_images/query.gif
  Set or reset the wait cursor for the entire Maya application. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.waitCursor

Example:

import pymel.core as pm

pm.waitCursor( state=True )
pm.waitCursor( state=False )