def METHOD_NAME(self, w: Gtk.ListBox, item_impl: Gtk.ListBoxRow):
    if self.interface.on_select is not None:
        if item_impl is not None:
            self.interface.on_select(self.interface, item_impl.interface)
        else:
            self.interface.on_select(self.interface, None)
    if self._active_row is not None and self._active_row != item_impl:
        self._active_row.hide_buttons()
        self._active_row = None