Aug-30-2021, 08:26 PM
(This post was last modified: Aug-30-2021, 08:26 PM by deanhystad.)
This is the important part:
What parts in particular do you find confusing?
window_info.SetAsChild(self.get_window_handle(), rect)This tells the browser to make it's window to a child of the Frame window. Most of the rest of the code in BrowserFrame is telling the BrowserFrame how to be a parent of a browser. Let the browser know when the window changes size or is moved. Let the browser know when the frame gets or loses focus. Let the browser know when the frame goes away. I don't think there is a much simpler way to do all that than the example code. Usually tkinter creates all the windows and everything that BrowserFrame does takes place behind the scenes.
What parts in particular do you find confusing?