[issue32839] Add after_info as a function to tkinter

2018-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Real use case for after_info() (with not arg): #33855 is about minimally testing all IDLE modules. At least import the module and create class instances when easily possible. For test_editor, I started with def test_init(self): # Temporary.

[issue32839] Add after_info as a function to tkinter

2018-03-04 Thread Cheryl Sabella
Cheryl Sabella added the comment: A few questions about returning the Python function name (specifically, how to derive it). This doesn't address the open issue with what to do about a Tcl command not tied to a Python function. 1. Serhiy wrote "and the API for restoring

[issue32839] Add after_info as a function to tkinter

2018-03-04 Thread Cheryl Sabella
Change by Cheryl Sabella : -- dependencies: +tkinter after_cancel does not behave correctly when called with id=None ___ Python tracker

[issue32839] Add after_info as a function to tkinter

2018-02-16 Thread Cheryl Sabella
Cheryl Sabella added the comment: I created issue32857 for the after_cancel issue. Thanks! -- ___ Python tracker ___

[issue32839] Add after_info as a function to tkinter

2018-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agreed with Cheryl's conclusion that likely after_cancel() had been called with None. The comments about 8.4 is wrong, and the solution in issue763637 is not correct. The current code code deletes the script for the first

[issue32839] Add after_info as a function to tkinter

2018-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Since events are removed from Tcl once that are invoked, how would the > dictionary be cleaned up? Would after_info need to be polled every once in a > while to clean up the dictionary or would it just exist until the object

[issue32839] Add after_info as a function to tkinter

2018-02-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: A person who can create a tcl callback with tk.call can inquire with tk.call('after', 'info', id). That does not cover callbacks created by tcl or extensions thereof, but references to such callbacks are unlikely to be useful to anyone who

[issue32839] Add after_info as a function to tkinter

2018-02-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: >>> It is internal, it was not exposed to Tkinter users before, and the API for >>> restoring the original Python callable is private. I thought `bind(sequence)` also returned these internal Tcl function names? For example, if I do a

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that in the tests for issue32831 you need to use call('after', 'info') if you want to backport them. -- ___ Python tracker

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On one side, the first item of the list returned by the Tcl command `after info $id` is a name of the Tcl command generated by Tkinter. It is internal, it was not exposed to Tkinter users before, and the API for restoring the

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: 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, 10))[0] is f be

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've made a pull request. I understand that you may not want to add this functionality, but perhaps the docstring will answer your questions. I took it from the Tcl docs page. -- ___ Python

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +5466 stage: -> patch review ___ Python tracker ___

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure what after_info(id) should return. -- nosy: +terry.reedy ___ Python tracker

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: I was working on the tests for issue32831. One of the methods was `__del__` which made sure timer events were canceled with `after_cancel`. In the test, to assert that the after events no longer existed after calling `__del__` and after

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the use case for this method? How it could be used? -- nosy: +serhiy.storchaka ___ Python tracker

[issue32839] Add after_info as a function to tkinter

2018-02-13 Thread Cheryl Sabella
New submission from Cheryl Sabella : In tkinter, after_cancel has a call to after info: data = self.tk.call('after', 'info', id) Since this is a supported command, there should be a function to access it directly. https://www.tcl.tk/man/tcl8.6/TclCmd/after.htm --