[Python-checkins] cpython (3.2): Issue #14876: Use user-selected font for highlight configuration.
terry.reedy
python-checkins at python.org
Sat May 26 22:57:22 CEST 2012
http://hg.python.org/cpython/rev/e443cce4f183
changeset: 77169:e443cce4f183
branch: 3.2
parent: 77149:ea25ce432343
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Sat May 26 16:31:00 2012 -0400
summary:
Issue #14876: Use user-selected font for highlight configuration.
Patch by Roger Serwy.
files:
Lib/idlelib/configDialog.py | 6 ++++--
Misc/NEWS | 2 ++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
--- a/Lib/idlelib/configDialog.py
+++ b/Lib/idlelib/configDialog.py
@@ -187,7 +187,7 @@
text=' Highlighting Theme ')
#frameCustom
self.textHighlightSample=Text(frameCustom,relief=SOLID,borderwidth=1,
- font=('courier',12,''),cursor='hand2',width=21,height=10,
+ font=('courier',12,''),cursor='hand2',width=21,height=11,
takefocus=FALSE,highlightthickness=0,wrap=NONE)
text=self.textHighlightSample
text.bind('<Double-Button-1>',lambda e: 'break')
@@ -821,8 +821,10 @@
fontWeight=tkFont.BOLD
else:
fontWeight=tkFont.NORMAL
- self.editFont.config(size=self.fontSize.get(),
+ size=self.fontSize.get()
+ self.editFont.config(size=size,
weight=fontWeight,family=fontName)
+ self.textHighlightSample.configure(font=(fontName, size, fontWeight))
def SetHighlightTarget(self):
if self.highlightTarget.get()=='Cursor': #bg not possible
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -67,6 +67,8 @@
Library
-------
+- Issue #14876: Use user-selected font for highlight configuration.
+
- Issue #14920: Fix the help(urllib.parse) failure on locale C on terminals.
Have ascii characters in help.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list