]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120104: IDLE: Fix padding in config and search dialogs (#120107)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 6 Aug 2024 16:45:53 +0000 (19:45 +0300)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 16:45:53 +0000 (12:45 -0400)
Lib/idlelib/configdialog.py
Lib/idlelib/searchbase.py
Misc/NEWS.d/next/IDLE/2024-06-05-14-54-24.gh-issue-120104.j_thj4.rst [new file with mode: 0644]

index eedf97bf74fe6af1e9d9352abc78a759b871a50d..4d2adb48570d495e2697fc39f44ba94fae492708 100644 (file)
@@ -111,7 +111,7 @@ class ConfigDialog(Toplevel):
             load_configs: Load pages except for extensions.
             activate_config_changes: Tell editors to reload.
         """
-        self.frame = frame = Frame(self, padding="5px")
+        self.frame = frame = Frame(self, padding=5)
         self.frame.grid(sticky="nwes")
         self.note = note = Notebook(frame)
         self.extpage = ExtPage(note)
index 64ed50c7364be394c08df04c94c737f738f2f8b6..c68a6ca339af045dbfb52a939ac62c1401f9bb9e 100644 (file)
@@ -86,7 +86,7 @@ class SearchDialogBase:
         top.wm_iconname(self.icon)
         _setup_dialog(top)
         self.top = top
-        self.frame = Frame(top, padding="5px")
+        self.frame = Frame(top, padding=5)
         self.frame.grid(sticky="nwes")
         top.grid_columnconfigure(0, weight=100)
         top.grid_rowconfigure(0, weight=100)
diff --git a/Misc/NEWS.d/next/IDLE/2024-06-05-14-54-24.gh-issue-120104.j_thj4.rst b/Misc/NEWS.d/next/IDLE/2024-06-05-14-54-24.gh-issue-120104.j_thj4.rst
new file mode 100644 (file)
index 0000000..10f5e34
--- /dev/null
@@ -0,0 +1 @@
+Fix padding in config and search dialog windows in IDLE.