mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-38792: Remove IDLE shell calltip before new prompt. (#17150)
Previously, a calltip might be left after SyntaxError, KeyboardInterrupt, or Shell Restart. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tal Einat <taleinat+github@gmail.com>
This commit is contained in:
parent
46874c26ee
commit
bfdeaa37b3
5 changed files with 9 additions and 3 deletions
|
@ -328,7 +328,7 @@ class EditorWindow(object):
|
|||
text.bind("<<run-module>>", scriptbinding.run_module_event)
|
||||
text.bind("<<run-custom>>", scriptbinding.run_custom_event)
|
||||
text.bind("<<do-rstrip>>", self.Rstrip(self).do_rstrip)
|
||||
ctip = self.Calltip(self)
|
||||
self.ctip = ctip = self.Calltip(self)
|
||||
text.bind("<<try-open-calltip>>", ctip.try_open_calltip_event)
|
||||
#refresh-calltip must come after paren-closed to work right
|
||||
text.bind("<<refresh-calltip>>", ctip.refresh_calltip_event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue