I am building a tkinter gui program which runs some powershell commands and for unexpected behaviour gives warning message, along with one play video button. When User clicks on button, it will open webview window and plays video. But till playing video it pauses tkinter window.I tried multithreading but webview needs to be run on main thread error received. What should I do to keep both windows running?