Skip to content
Prev Previous commit
Next Next commit
Update Lib/tkinter/__init__.py
  • Loading branch information
serhiy-storchaka authored Apr 25, 2024
commit 5b337733427b3f657ff4e10db3c5b8225966d92c
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