Pour rendre un widget inactif ou actif, il faut utiliser la méthode $widget->set_sensitive(FALSE);