This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients cheryl.sabella, serhiy.storchaka, terry.reedy
Date 2018-02-13.22:45:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518561906.65.0.467229070634.issue32839@psf.upfronthosting.co.za>
In-reply-to
Content
I am in favor of exposing all of tk where it makes sense to do so, and I think it does here.

After 'translating' the tk after_info entry into tkinter-ese, I would expect and want that
  root.after_info(root.after(f, 100000))[0] is f
be true.  the same as would be true of the tcl equivalent. (This could even be a test.)  It appears that the current patch instead returns a (python) reference to the tcl wrapper of f.  The fact that python callbacks get wrapped as tcl callbacks is currently transparent to tkinter users and should remain so.

Serhiy, I presume that this is what you were uncertain about.  I am presuming above that f can be recovered.

Returning the function kind as 'timer' or 'idle' is fine. In other contexts, an enumeration would be a possibility, but this does not seem to fit tkinter.

I presume a bad id results in TclError.  Do other tkinter functions allow TclError to propagate?  My impression is no.  If so, it should be replaced here in a way consistent with other tkinter practice.
History
Date User Action Args
2018-02-13 22:45:06terry.reedysetrecipients: + terry.reedy, serhiy.storchaka, cheryl.sabella
2018-02-13 22:45:06terry.reedysetmessageid: <1518561906.65.0.467229070634.issue32839@psf.upfronthosting.co.za>
2018-02-13 22:45:06terry.reedylinkissue32839 messages
2018-02-13 22:45:06terry.reedycreate