[issue8204] test_ttk_guionly assertion error on 3.x linux 64-bit

Martin v. Löwis report at bugs.python.org
Thu Apr 8 15:08:04 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Could it be caused because the notebook is not focused at the correct
> time ? Here in OSX (finally I have one of these) I had to add
> self.nb.focus() before that event_generate.

No, that doesn't help. The event still gets lost. In particular, running

ttk::notebook .nb
.nb add [label .nb.l1 -text hello] -text a
.nb add [label .nb.l2 -text world] -text b
pack .nb
focus .nb
puts [.nb select]
event generate .nb <Key-Right>
puts [.nb select]

in wish prints ".nb.l1" twice; pressing the right key at the end of the
script does cycle properly, though.

----------

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


More information about the Python-bugs-list mailing list