(original) (raw)

changeset: 77171:dc9ddad40bba branch: 2.7 parent: 77137:1f5d2642929a user: Terry Jan Reedy tjreedy@udel.edu date: Sat May 26 16:55:43 2012 -0400 files: Lib/idlelib/configDialog.py Misc/NEWS description: Issue #14876: Use user-selected font for highlight configuration. Patch by Roger Serwy. diff -r 1f5d2642929a -r dc9ddad40bba Lib/idlelib/configDialog.py --- a/Lib/idlelib/configDialog.py Fri May 25 12:56:33 2012 +0100 +++ b/Lib/idlelib/configDialog.py Sat May 26 16:55:43 2012 -0400 @@ -183,7 +183,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('',lambda e: 'break') @@ -832,8 +832,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 -r 1f5d2642929a -r dc9ddad40bba Misc/NEWS --- a/Misc/NEWS Fri May 25 12:56:33 2012 +0100 +++ b/Misc/NEWS Sat May 26 16:55:43 2012 -0400 @@ -64,6 +64,9 @@ Library ------- +- Issue #14876: Use user-selected font for highlight configuration. + Patch by Roger Serwy. + - Issue #14036: Add an additional check to validate that port in urlparse does not go in illegal range and returns None./tjreedy@udel.edu