Remove the selected widget, returns the index of the removed widget or -1 if no such widget was found.
Esborra l' estri seleccionat, retorna l' index de l' estri esborrat o - 1 si no s' ha trobat l' estri.