| 154 | class BrowserFrame(tk.Frame): |
| 155 | |
| 156 | def __init__(self, mainframe, navigation_bar=None): |
| 157 | self.navigation_bar = navigation_bar |
| 158 | self.closing = False |
| 159 | self.browser = None |
| 160 | tk.Frame.__init__(self, mainframe) |
| 161 | self.mainframe = mainframe |
| 162 | self.bind("<FocusIn>", self.on_focus_in) |
| 163 | self.bind("<FocusOut>", self.on_focus_out) |
| 164 | self.bind("<Configure>", self.on_configure) |
| 165 | """For focus problems see Issue #255 and Issue #535. """ |
| 166 | self.focus_set() |
| 167 | |
| 168 | def embed_browser(self): |
| 169 | window_info = cef.WindowInfo() |