[issue27196] Eliminate 'ThemeChanged' warning when running IDLE tests

Terry J. Reedy report at bugs.python.org
Fri Jun 3 04:00:07 EDT 2016


New submission from Terry J. Reedy:

When running "python_d.exe -m test_idle from console or when running test file from IDLE after starting it in either console or by import, the following sometimes appears.

can't invoke "event" command: application has been destroyed
    while executing
"event generate $w <<ThemeChanged>>"
    (procedure "ttk::ThemeChanged" line 6)
    invoked from within
"ttk::ThemeChanged"

Serhiy, this is pobably not critical, but it is annoying.  Perhaps the 'kill-callbacks' patch would fix this.  Still, I try to have IDLE tests cleanup properly.

Known repeatable occurrences:
* test_configdialog.ConfigDialogTest.test_dialog, when run from IDLE after import, but not when part of suite.
* test_replace.ReplaceDialogTest.test_default_command, 3 times, when run as part suite, but not when run from IDLE after import.

----------
components: IDLE, Tkinter
messages: 267078
nosy: serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Eliminate 'ThemeChanged' warning when running IDLE tests
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27196>
_______________________________________


More information about the Python-bugs-list mailing list