[Python-checkins] bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)

Terry Jan Reedy webhook-mailer at python.org
Fri Jul 26 23:24:41 EDT 2019


https://github.com/python/cpython/commit/46ebd4a6a22431ce9676546d2bbe5a6dcd1cc1c1
commit: 46ebd4a6a22431ce9676546d2bbe5a6dcd1cc1c1
branch: master
author: Tal Einat <taleinat at gmail.com>
committer: Terry Jan Reedy <tjreedy at udel.edu>
date: 2019-07-26T23:24:36-04:00
summary:

bpo-17535: Increase line number horizontal padding by 2 pixels (GH-14959)

files:
M Lib/idlelib/sidebar.py

diff --git a/Lib/idlelib/sidebar.py b/Lib/idlelib/sidebar.py
index 8f9bf80b5260..76964a4cdfbe 100644
--- a/Lib/idlelib/sidebar.py
+++ b/Lib/idlelib/sidebar.py
@@ -51,7 +51,7 @@ def __init__(self, editwin):
 
         _padx, pady = get_widget_padding(self.text)
         self.sidebar_text = tk.Text(self.parent, width=1, wrap=tk.NONE,
-                                    padx=0, pady=pady,
+                                    padx=2, pady=pady,
                                     borderwidth=0, highlightthickness=0)
         self.sidebar_text.config(state=tk.DISABLED)
         self.text['yscrollcommand'] = self.redirect_yscroll_event



More information about the Python-checkins mailing list