mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-46591: Make About IDLE doc link label clickable (GH-30251)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
89b13042fc
commit
53c7808057
4 changed files with 7 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue