E. Paine <xepain...@gmail.com> added the comment:
Reproduced using Wish built from the current Tk head (on Windows - I'm unable to reproduce on Linux). --- Strangely, invoking destroy in the trace callback raises a very strange error that appears to be missing the first two lines (tkinter may be hiding this error since it's a Tcl error occurring after the callback has completed?): while executing "$cb current $index" (procedure "SelectEntry" line 2) invoked from within "SelectEntry $cb [lindex $selection 0]" (procedure "LBSelect" line 5) invoked from within "LBSelect $lb" (procedure "ttk::combobox::LBSelected" line 3) invoked from within "ttk::combobox::LBSelected .c.popdown.f.l " (command bound to event) As stated above, however, the issue with focussing can be reproduced in Wish, by simply using `after`: proc changed {name1 name2 op} { puts changed trace remove variable cvar write changed pack forget .c after idle {destroy .c} } pack [ttk::combobox .c -textvariable cvar -values {1 2}] pack [ttk::entry .e] trace add variable cvar write changed ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46181> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com