Sorry for the delay, I've been busy at work. Both proposed solutions solve the problem, which I believe does not occur with other widgetsets under Linux (Qt, GTK). I haven't tried it, but I report what I read in the comments of the YouTube video I linked. Thanks for the support.