mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
IDLE: Fix docs URL in the About window (#28417)
This commit is contained in:
parent
aa37ffda29
commit
0f17a754d9
1 changed files with 3 additions and 2 deletions
|
|
@ -91,8 +91,9 @@ class AboutDialog(Toplevel):
|
|||
email = Label(frame_background, text='email: idle-dev@python.org',
|
||||
justify=LEFT, fg=self.fg, bg=self.bg)
|
||||
email.grid(row=6, column=0, columnspan=2, sticky=W, padx=10, pady=0)
|
||||
docs = Label(frame_background, text="https://docs.python.org/"
|
||||
f"{version[:version.rindex('.')]}/library/idle.html",
|
||||
docs_url = ("https://docs.python.org/%d.%d/library/idle.html" %
|
||||
sys.version_info[:2])
|
||||
docs = Label(frame_background, text=docs_url,
|
||||
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']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue