From 44b4029a3cc13a98148f4cb032739791e2b15eee Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 3 Jul 2026 20:06:41 -0400 Subject: [PATCH] [3.14] Backport idlelib changes in PR 142294 (#152986) PR-142294 (3.15) deleted 'button_ok in textview and 'was_executing' in pyshell. Backport to 3.14 and 3.13. --- Lib/idlelib/pyshell.py | 1 - Lib/idlelib/textview.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index 1cf33dd528ea..ef3d014d936c 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -512,7 +512,6 @@ class ModifiedInterpreter(InteractiveInterpreter): self.rpcclt.close() self.terminate_subprocess() console = self.tkconsole - was_executing = console.executing console.executing = False self.spawn_subprocess() try: diff --git a/Lib/idlelib/textview.py b/Lib/idlelib/textview.py index 23f0f4cb5027..0f719a06883a 100644 --- a/Lib/idlelib/textview.py +++ b/Lib/idlelib/textview.py @@ -129,8 +129,8 @@ class ViewWindow(Toplevel): self.title(title) self.viewframe = ViewFrame(self, contents, wrap=wrap) self.protocol("WM_DELETE_WINDOW", self.ok) - self.button_ok = button_ok = Button(self, text='Close', - command=self.ok, takefocus=False) + self.button_ok = Button(self, text='Close', + command=self.ok, takefocus=False) self.viewframe.pack(side='top', expand=True, fill='both') self.is_modal = modal -- 2.47.3