summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/tkinter/test/test_ttk/test_widgets.py8
-rw-r--r--Misc/NEWS2
-rw-r--r--setup.py4
3 files changed, 10 insertions, 4 deletions
diff --git a/Lib/tkinter/test/test_ttk/test_widgets.py b/Lib/tkinter/test/test_ttk/test_widgets.py
index 48a5223..fc3d1e5 100644
--- a/Lib/tkinter/test/test_ttk/test_widgets.py
+++ b/Lib/tkinter/test/test_ttk/test_widgets.py
@@ -704,15 +704,19 @@ class NotebookTest(unittest.TestCase):
self.nb.select(0)
support.simulate_mouse_click(self.nb, 5, 5)
+ self.nb.focus_force()
self.nb.event_generate('<Control-Tab>')
self.assertEqual(self.nb.select(), str(self.child2))
+ self.nb.focus_force()
self.nb.event_generate('<Shift-Control-Tab>')
self.assertEqual(self.nb.select(), str(self.child1))
+ self.nb.focus_force()
self.nb.event_generate('<Shift-Control-Tab>')
self.assertEqual(self.nb.select(), str(self.child2))
self.nb.tab(self.child1, text='a', underline=0)
self.nb.enable_traversal()
+ self.nb.focus_force()
self.nb.event_generate('<Alt-a>')
self.assertEqual(self.nb.select(), str(self.child1))
@@ -1112,9 +1116,9 @@ class TreeviewTest(unittest.TestCase):
self.assertRaises(tkinter.TclError, self.tv.tag_configure,
'test', sky='blue')
self.tv.tag_configure('test', foreground='blue')
- self.assertEqual(self.tv.tag_configure('test', 'foreground'),
+ self.assertEqual(str(self.tv.tag_configure('test', 'foreground')),
'blue')
- self.assertEqual(self.tv.tag_configure('test', foreground=None),
+ self.assertEqual(str(self.tv.tag_configure('test', foreground=None)),
'blue')
self.assertTrue(isinstance(self.tv.tag_configure('test'), dict))
diff --git a/Misc/NEWS b/Misc/NEWS
index ec6d9f9..ae4c06b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -600,6 +600,8 @@ Extension Modules
Build
-----
+- Issue #6244: Allow detect_tkinter to look for Tcl/Tk 8.6.
+
- Issue #1633863: Don't ignore $CC under AIX.
- Issue #9810: Compile bzip2 source files in python's project file
diff --git a/setup.py b/setup.py
index d45c591..cdb1937 100644
--- a/setup.py
+++ b/setup.py
@@ -1450,8 +1450,8 @@ class PyBuildExt(build_ext):
# The versions with dots are used on Unix, and the versions without
# dots on Windows, for detection by cygwin.
tcllib = tklib = tcl_includes = tk_includes = None
- for version in ['8.5', '85', '8.4', '84', '8.3', '83', '8.2',
- '82', '8.1', '81', '8.0', '80']:
+ for version in ['8.6', '86', '8.5', '85', '8.4', '84', '8.3', '83',
+ '8.2', '82', '8.1', '81', '8.0', '80']:
tklib = self.compiler.find_library_file(lib_dirs, 'tk' + version)
tcllib = self.compiler.find_library_file(lib_dirs, 'tcl' + version)
if tklib and tcllib: