Skip to content

Commit a1869e3

Browse files
bpo-46591: Make About IDLE doc link label clickable (GH-30251)
Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 53c7808) Co-authored-by: Wes <[email protected]>
1 parent e4a6e54 commit a1869e3

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

Lib/idlelib/NEWS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Released on 2022-05-16
44
=========================
55

66

7+
bpo-46591: Make the IDLE doc URL on the About IDLE dialog clickable.
8+
79
bpo-45296: Clarify close, quit, and exit in IDLE. In the File menu,
810
'Close' and 'Exit' are now 'Close Window' (the current one) and 'Exit'
911
is now 'Exit IDLE' (by closing all windows). In Shell, 'quit()' and

Lib/idlelib/help_about.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44
import os
55
import sys
6+
import webbrowser
67
from platform import python_version, architecture
78

89
from tkinter import Toplevel, Frame, Label, Button, PhotoImage
@@ -94,6 +95,7 @@ def create_widgets(self):
9495
f"{version[:version.rindex('.')]}/library/idle.html",
9596
justify=LEFT, fg=self.fg, bg=self.bg)
9697
docs.grid(row=7, column=0, columnspan=2, sticky=W, padx=10, pady=0)
98+
docs.bind("<Button-1>", lambda event: webbrowser.open(docs['text']))
9799

98100
Frame(frame_background, borderwidth=1, relief=SUNKEN,
99101
height=2, bg=self.bg).grid(row=8, column=0, sticky=EW,

Lib/idlelib/idle_test/htest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def _wrapper(parent): # htest #
7777
'kwds': {'title': 'help_about test',
7878
'_htest': True,
7979
},
80-
'msg': "Test every button. Ensure Python, TK and IDLE versions "
81-
"are correctly displayed.\n [Close] to exit.",
80+
'msg': "Click on URL to open in default browser.\n"
81+
"Verify x.y.z versions and test each button, including Close.\n "
8282
}
8383

8484
# TODO implement ^\; adding '<Control-Key-\\>' to function does not work.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make the IDLE doc URL on the About IDLE dialog clickable.

0 commit comments

Comments
 (0)