summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorMarc Culler <culler@users.noreply.github.com>2024-11-14 18:45:08 (GMT)
committerGitHub <noreply@github.com>2024-11-14 18:45:08 (GMT)
commit47cbf038850852cdcbe7a404ed7c64542340d58a (patch)
treeca977544f84a311c43120280e1ae564f67b51728 /Lib/tkinter
parent1e3497e745d6559d30dbb65c914d19c759d60dc5 (diff)
downloadcpython-47cbf038850852cdcbe7a404ed7c64542340d58a.zip
cpython-47cbf038850852cdcbe7a404ed7c64542340d58a.tar.gz
cpython-47cbf038850852cdcbe7a404ed7c64542340d58a.tar.bz2
gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124156)
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/ttk.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tkinter/ttk.py b/Lib/tkinter/ttk.py
index 073b3ae..8ddb7f9 100644
--- a/Lib/tkinter/ttk.py
+++ b/Lib/tkinter/ttk.py
@@ -321,6 +321,8 @@ def _tclobj_to_py(val):
elif hasattr(val, 'typename'): # some other (single) Tcl object
val = _convert_stringval(val)
+ if isinstance(val, tuple) and len(val) == 0:
+ return ''
return val
def tclobjs_to_py(adict):