def _on_row_activated(self, listbox, row): DetailWindow( row.model, modal=True, transient_for=self.get_toplevel(), type_hint=Gdk.WindowTypeHint.DIALOG ).present()