How to Lock User's Cursor for Specified Duration in Python

Prompt

Result