@@ -780,19 +780,17 @@ def after_cancel(self, id):
780780 def after_info (self , id = None ):
781781 """Return information about existing event handlers.
782782
783- With no argument, return a list of the identifiers for all existing
784- event handlers created by the after command for this interpreter.
785- If id is supplied, it specifies an existing handler; id must have been
786- the return value from some previous call to after or after_idle and it
787- must not have triggered yet or been canceled. If the id doesn't exist,
788- a TclError is raised. Othewise, the return value is a tuple
789- containing (script, type) where type is either 'idle' or 'timer' to
790- indicate what kind of event handler it is.
783+ With no argument, return a tuple of the identifiers for all existing
784+ event handlers created by the after and after_idle commands for this
785+ interpreter. If id is supplied, it specifies an existing handler; id
786+ must have been the return value from some previous call to after or
787+ after_idle and it must not have triggered yet or been canceled. If the
788+ id doesn't exist, a TclError is raised. Othewise, the return value is
789+ a tuple containing (script, type) where script is a reference to the
790+ function to be called by the event handler and type is either 'idle'
791+ or 'timer' to indicate what kind of event handler it is.
791792 """
792- if id is None :
793- return self .tk .call ('after' , 'info' )
794- else :
795- return self .tk .call ('after' , 'info' , id )
793+ return self .tk .splitlist (self .tk .call ('after' , 'info' , id ))
796794
797795 def bell (self , displayof = 0 ):
798796 """Ring a display's bell."""
0 commit comments