Skip to content

Commit 5b33773

Browse files
Update Lib/tkinter/__init__.py
1 parent ff9e774 commit 5b33773

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Lib/tkinter/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,10 @@ def after_info(self, id=None):
851851
function to be called by the event handler and type is either 'idle'
852852
or 'timer' to indicate what kind of event handler it is.
853853
"""
854-
return self.tk.splitlist(self.tk.call('after', 'info', id))
854+
result = self.tk.splitlist(self.tk.call('after', 'info', id))
855+
if id is not None:
856+
result = tuple(map(self.tk.splitlist, result))
857+
return result
855858

856859
def bell(self, displayof=0):
857860
"""Ring a display's bell."""

0 commit comments

Comments
 (0)