pymel.core.general.setToolTo

setToolTo(*args, **kwargs)

This command switches control to the named context.

Derived from mel command maya.cmds.setToolTo

Example:

import pymel.core as pm

pm.setToolTo( 'moveSuperContext' )