The gradient widget is working
The comboboxes from mask properties are working now.

The problem was that combobox must not empty.
Surface task is working again
Putting combobox thresholds presets in a new line
putting the import pil inside a try except