cpython: dc9ddad40bba (original) (raw)
Mercurial > cpython
changeset 77171:dc9ddad40bba 2.7
Issue #14876: Use user-selected font for highlight configuration. Patch by Roger Serwy. [#14876]
Terry Jan Reedy tjreedy@udel.edu | |
---|---|
date | Sat, 26 May 2012 16:55:43 -0400 |
parents | 1f5d2642929a |
children | 4334964993b9 |
files | Lib/idlelib/configDialog.py Misc/NEWS |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-)[+] [-] Lib/idlelib/configDialog.py 6 Misc/NEWS 3 |
line wrap: on
line diff
--- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -183,7 +183,7 @@ class ConfigDialog(Toplevel): text=' Highlighting Theme ') #frameCustom self.textHighlightSample=Text(frameCustom,relief=SOLID,borderwidth=1,
font=('courier',12,''),cursor='hand2',width=21,height=10,[](#l1.7)
font=('courier',12,''),cursor='hand2',width=21,height=11,[](#l1.8) takefocus=FALSE,highlightthickness=0,wrap=NONE)[](#l1.9) text=self.textHighlightSample[](#l1.10) text.bind('<Double-Button-1>',lambda e: 'break')[](#l1.11)
@@ -832,8 +832,10 @@ class ConfigDialog(Toplevel): fontWeight=tkFont.BOLD else: fontWeight=tkFont.NORMAL
self.editFont.config(size=self.fontSize.get(),[](#l1.16)
size=self.fontSize.get()[](#l1.17)
self.editFont.config(size=size,[](#l1.18) weight=fontWeight,family=fontName)[](#l1.19)
self.textHighlightSample.configure(font=(fontName, size, fontWeight))[](#l1.20)
def SetHighlightTarget(self): if self.highlightTarget.get()=='Cursor': #bg not possible
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -64,6 +64,9 @@ Core and Builtins Library ------- +- Issue #14876: Use user-selected font for highlight configuration.