Issue #21882: In turtle demos, remove module scope gui and sys calls by
moving them to the module's main function.
Issue #18592: Add unittests for SearchDialogBase. Patch by Phil Webster.
whitespace
Issue #18592: Refactor 2 SearchDialogBase.create_(option/other)_buttons methods
to remove duplication and return info for tests.  Rewrite corresponding tests.
Test_create_option_buttons was not testing anything because of buggy
comparisons.  Use Python subscripting to get widget options.