From 5277bcbf59b914cb9a1c8ca6f70549be19ec0ba7 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Fri, 3 Jul 2026 18:58:22 -0400 Subject: [PATCH] [3.14] Backport idlelib changes in PR 142294 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 1cf33dd528eaaf..ef3d014d936ce8 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -512,7 +512,6 @@ def restart_subprocess(self, with_cwd=False, filename=''): 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 23f0f4cb5027ec..0f719a06883ad7 100644 --- a/Lib/idlelib/textview.py +++ b/Lib/idlelib/textview.py @@ -129,8 +129,8 @@ def __init__(self, parent, title, contents, modal=True, wrap=WORD, 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