summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/help_about.py
diff options
context:
space:
mode:
authorWes <5124946+wesinator@users.noreply.github.com>2022-02-02 01:20:23 (GMT)
committerGitHub <noreply@github.com>2022-02-02 01:20:23 (GMT)
commit53c78080573b3bae4c4e782b9f47dce48aac9688 (patch)
tree1e7cd96f4380d9c16008a860b76413d31fa62b4b /Lib/idlelib/help_about.py
parent89b13042fcfc95bae21a49806a205ef62f1cdd73 (diff)
downloadcpython-53c78080573b3bae4c4e782b9f47dce48aac9688.zip
cpython-53c78080573b3bae4c4e782b9f47dce48aac9688.tar.gz
cpython-53c78080573b3bae4c4e782b9f47dce48aac9688.tar.bz2
bpo-46591: Make About IDLE doc link label clickable (GH-30251)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/help_about.py')
-rw-r--r--Lib/idlelib/help_about.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/help_about.py b/Lib/idlelib/help_about.py
index 019aacb..c59f494 100644
--- a/Lib/idlelib/help_about.py
+++ b/Lib/idlelib/help_about.py
@@ -3,6 +3,7 @@
"""
import os
import sys
+import webbrowser
from platform import python_version, architecture
from tkinter import Toplevel, Frame, Label, Button, PhotoImage
@@ -94,6 +95,7 @@ class AboutDialog(Toplevel):
f"{version[:version.rindex('.')]}/library/idle.html",
justify=LEFT, fg=self.fg, bg=self.bg)
docs.grid(row=7, column=0, columnspan=2, sticky=W, padx=10, pady=0)
+ docs.bind("<Button-1>", lambda event: webbrowser.open(docs['text']))
Frame(frame_background, borderwidth=1, relief=SUNKEN,
height=2, bg=self.bg).grid(row=8, column=0, sticky=EW,