Issue #20567: Delete class attribute gui widgets in idle tests.
Code patch by Serhiy Storchaka