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
0b48303f
Commit
0b48303f
authored
Jul 25, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1525817: Don't truncate short lines in IDLE's tool tips.
parent
0c4a3b33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/idlelib/CallTipWindow.py
Lib/idlelib/CallTipWindow.py
+5
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/CallTipWindow.py
View file @
0b48303f
...
...
@@ -49,7 +49,11 @@ class CallTip:
"""
# truncate overly long calltip
if
len
(
text
)
>=
79
:
text
=
text
[:
75
]
+
' ...'
textlines
=
text
.
splitlines
()
for
i
,
line
in
enumerate
(
textlines
):
if
len
(
line
)
>
79
:
textlines
[
i
]
=
line
[:
75
]
+
' ...'
text
=
'
\
n
'
.
join
(
textlines
)
self
.
text
=
text
if
self
.
tipwindow
or
not
self
.
text
:
return
...
...
Misc/NEWS
View file @
0b48303f
...
...
@@ -39,6 +39,8 @@ Core and builtins
Library
-------
- Bug #1525817: Don'
t
truncate
short
lines
in
IDLE
's tool tips.
- Patch #1515343: Fix printing of deprecated string exceptions with a
value in the traceback module.
...
...
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