Issue #8204: Fix test_ttk notebook test by forcing focus.
This commit is contained in:
parent
1b287c7434
commit
e84089e3f1
|
@ -704,15 +704,19 @@ class NotebookTest(unittest.TestCase):
|
||||||
self.nb.select(0)
|
self.nb.select(0)
|
||||||
|
|
||||||
support.simulate_mouse_click(self.nb, 5, 5)
|
support.simulate_mouse_click(self.nb, 5, 5)
|
||||||
|
self.nb.focus_force()
|
||||||
self.nb.event_generate('<Control-Tab>')
|
self.nb.event_generate('<Control-Tab>')
|
||||||
self.assertEqual(self.nb.select(), str(self.child2))
|
self.assertEqual(self.nb.select(), str(self.child2))
|
||||||
|
self.nb.focus_force()
|
||||||
self.nb.event_generate('<Shift-Control-Tab>')
|
self.nb.event_generate('<Shift-Control-Tab>')
|
||||||
self.assertEqual(self.nb.select(), str(self.child1))
|
self.assertEqual(self.nb.select(), str(self.child1))
|
||||||
|
self.nb.focus_force()
|
||||||
self.nb.event_generate('<Shift-Control-Tab>')
|
self.nb.event_generate('<Shift-Control-Tab>')
|
||||||
self.assertEqual(self.nb.select(), str(self.child2))
|
self.assertEqual(self.nb.select(), str(self.child2))
|
||||||
|
|
||||||
self.nb.tab(self.child1, text='a', underline=0)
|
self.nb.tab(self.child1, text='a', underline=0)
|
||||||
self.nb.enable_traversal()
|
self.nb.enable_traversal()
|
||||||
|
self.nb.focus_force()
|
||||||
self.nb.event_generate('<Alt-a>')
|
self.nb.event_generate('<Alt-a>')
|
||||||
self.assertEqual(self.nb.select(), str(self.child1))
|
self.assertEqual(self.nb.select(), str(self.child1))
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #8204: Fix test_ttk notebook test by forcing focus.
|
||||||
|
|
||||||
- Issue #8344: Fix test_ttk bug on FreeBSD.
|
- Issue #8344: Fix test_ttk bug on FreeBSD.
|
||||||
|
|
||||||
- Issue #8321: Give access to OpenSSL version numbers from the `ssl` module,
|
- Issue #8321: Give access to OpenSSL version numbers from the `ssl` module,
|
||||||
|
|
Loading…
Reference in New Issue