Oct-26-2021, 04:27 PM
(Oct-25-2021, 05:51 PM)deanhystad Wrote: I think this may be a tkinter layout problem. What is the location and size of the BrowserFrame?
i think thats the issue, its not pointing to the frame and so it load width and height =0
i think the issue is here
rect = [0, 0, self.winfo_width(), self.winfo_height()]
it prints
140339762794416 [0, 0, 1, 1]
i think its because the browser windows is not set properly, the self points to .!labelframe2.!browserframe
if i replace
rect = [0, 0, self.winfo_width(), self.winfo_height()]
for
rect = [0, 0, 300,200]
it opens, so the issue is that the browser frame is set to 0,0
also, doing this opens but not in the correct LabelFrame(home_browser)
also this might help
print(win_id, rect) -> 140276467161232 [5, 5, 1, 1]
print(self) -> .!labelframe2.!browserframe
print(cef_winfo) -> <cefpython_py39.WindowInfo object at 0x7f94ac924220>
print(event) -> <Configure event x=9 y=25 width=1 height=1>