def do_focus_in_event(self, event): PersistentWindow.do_focus_in_event(self, event) self.browser.focus()