Skip to content

Commit

Permalink
Update Lib/tkinter/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Apr 25, 2024
1 parent ff9e774 commit 5b33773
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/tkinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,10 @@ def after_info(self, id=None):
function to be called by the event handler and type is either 'idle'
or 'timer' to indicate what kind of event handler it is.
"""
return self.tk.splitlist(self.tk.call('after', 'info', id))
result = self.tk.splitlist(self.tk.call('after', 'info', id))
if id is not None:
result = tuple(map(self.tk.splitlist, result))
return result

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

0 comments on commit 5b33773

Please sign in to comment.