pynaviz.controller.GetController.pause#

GetController.pause()#

Context manager to temporarily disable the controller. Controller is set back to the original enabled/disabled state when leaving the context.

Usage#

with controller.pause():

# do things while controller.enabled is False

# outside context manager, controller.enabled is set back to the original value