def do_activate(self): Gtk.Application.do_activate(self) if not self._window: self._window = widgets.Window(self, self._builder, Application.TITLE, self._settings) self._window.present()