From 1753164111367d2090efea8538d8c3e034f60c87 Mon Sep 17 00:00:00 2001 From: BA-24 <65275759+BA-24@users.noreply.github.com> Date: Tue, 15 Sep 2026 18:53:08 +0200 Subject: [PATCH] gh-91398: Remove the border around the IDLE Shell sidebar (GH-32363) It was drawn in the window background color and stood out with dark themes. (cherry picked from commit 82952e3fe3ad36e481911a32790068d5df680ee7) Co-authored-by: BA-24 <65275759+BA-24@users.noreply.github.com> Co-authored-by: Terry Jan Reedy --- Lib/idlelib/sidebar.py | 2 +- .../next/IDLE/2026-09-15-16-19-25.gh-issue-91398.PBdiDB.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/IDLE/2026-09-15-16-19-25.gh-issue-91398.PBdiDB.rst diff --git a/Lib/idlelib/sidebar.py b/Lib/idlelib/sidebar.py index aa19a24e3edef2..577b56324af179 100644 --- a/Lib/idlelib/sidebar.py +++ b/Lib/idlelib/sidebar.py @@ -453,7 +453,7 @@ def mkcmd(eventname): return "break" def grid(self): - self.canvas.grid(row=1, column=0, sticky=tk.NSEW, padx=2, pady=0) + self.canvas.grid(row=1, column=0, sticky=tk.NSEW) def change_callback(self): if self.is_shown: diff --git a/Misc/NEWS.d/next/IDLE/2026-09-15-16-19-25.gh-issue-91398.PBdiDB.rst b/Misc/NEWS.d/next/IDLE/2026-09-15-16-19-25.gh-issue-91398.PBdiDB.rst new file mode 100644 index 00000000000000..9db16c5a74a242 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2026-09-15-16-19-25.gh-issue-91398.PBdiDB.rst @@ -0,0 +1,2 @@ +Remove the border around the IDLE Shell sidebar, which was drawn in the +window background color and stood out with dark themes.