Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a0df94d
Commit
1a0df94d
authored
May 26, 2012
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Plain Diff
Merge Issue #14876: Use user-selected font for highlight configuration.
Patch by Roger Serwy.
parents
ee2bbed9
809309a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Lib/idlelib/configDialog.py
Lib/idlelib/configDialog.py
+4
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/configDialog.py
View file @
1a0df94d
...
...
@@ -187,7 +187,7 @@ class ConfigDialog(Toplevel):
text
=
' Highlighting Theme '
)
#frameCustom
self
.
textHighlightSample
=
Text
(
frameCustom
,
relief
=
SOLID
,
borderwidth
=
1
,
font
=
(
'courier'
,
12
,
''
),
cursor
=
'hand2'
,
width
=
21
,
height
=
1
0
,
font
=
(
'courier'
,
12
,
''
),
cursor
=
'hand2'
,
width
=
21
,
height
=
1
1
,
takefocus
=
FALSE
,
highlightthickness
=
0
,
wrap
=
NONE
)
text
=
self
.
textHighlightSample
text
.
bind
(
'<Double-Button-1>'
,
lambda
e
:
'break'
)
...
...
@@ -821,8 +821,10 @@ class ConfigDialog(Toplevel):
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
...
...
Misc/NEWS
View file @
1a0df94d
...
...
@@ -60,6 +60,8 @@ Library
new
features
through
new
policies
.
Note
that
Policy
.
must_be_7bit
is
renamed
to
cte_type
.
-
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
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment