def uninstall():
    """Remove the root Tk widget from the reactor.

    Call this before destroy()ing the root widget.
    """
    global _task
    _task.stop()
    _task = None
Remove the root Tk widget from the reactor.

    Call this before destroy()ing the root widget.
    
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/tksupport.py