def do_activate(self): Gtk.Application.do_activate(self) self._connect(self.host, self.username) self.unmark_busy()