mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-44404: tkinter after
support callable classes (GH-26812)
This commit is contained in:
parent
5c7940257e
commit
e9c8f784fa
3 changed files with 13 additions and 1 deletions
|
@ -841,7 +841,11 @@ class Misc:
|
|||
self.deletecommand(name)
|
||||
except TclError:
|
||||
pass
|
||||
callit.__name__ = func.__name__
|
||||
try:
|
||||
callit.__name__ = func.__name__
|
||||
except AttributeError:
|
||||
# Required for callable classes (bpo-44404)
|
||||
callit.__name__ = type(func).__name__
|
||||
name = self._register(callit)
|
||||
return self.tk.call('after', ms, name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue