mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Patch #749191: Delete commands in after_cancel. Will backport to 2.2.
This commit is contained in:
parent
7890c26508
commit
0f9e525bdf
1 changed files with 6 additions and 0 deletions
|
@ -474,6 +474,12 @@ class Misc:
|
||||||
|
|
||||||
Identifier returned by after or after_idle must be
|
Identifier returned by after or after_idle must be
|
||||||
given as first parameter."""
|
given as first parameter."""
|
||||||
|
try:
|
||||||
|
(script, type) = self.tk.splitlist(
|
||||||
|
self.tk.call('after', 'info', id))
|
||||||
|
self.deletecommand(script)
|
||||||
|
except TclError:
|
||||||
|
pass
|
||||||
self.tk.call('after', 'cancel', id)
|
self.tk.call('after', 'cancel', id)
|
||||||
def bell(self, displayof=0):
|
def bell(self, displayof=0):
|
||||||
"""Ring a display's bell."""
|
"""Ring a display's bell."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue