mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124156)
This commit is contained in:
parent
1e3497e745
commit
47cbf03885
11 changed files with 337 additions and 194 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue