Use Python to Teleport Mouse in Blender Window (like when scaling) I am making improvements to the VSE_Transform_Tools addon and I'd like to know if there is a way for me to use python to make the mouse jump to the other side of the screen when scaling or grabbing as seen in the 3d view:



Currently my addon does not have this behavior, as you can see:
Your operator should include the following in the bl_options: 


GRAB_CURSOR to allow it to grab the mouse focus and 
BLOCKING to prevent anything else from using the cursor


Like this:

bl_options = {'GRAB_CURSOR', 'BLOCKING'}


More info in the API documents.

As an example, you may see this in action in blender/2.79/scripts/addons/mesh_extra_tools.py