I'm also looking for a solution. In particular, I integrated the code into a tkinter frame, but I have problems managing the eventual closing of the webview window that causes me an exception.Did you happen to succeed?