https://github.com/python/cpython/commit/270ec26c51ff7ff20cb5c364a1247ea006122960 commit: 270ec26c51ff7ff20cb5c364a1247ea006122960 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: terryjreedy <tjre...@udel.edu> date: 2025-02-20T08:54:31Z summary:
[3.13] gh-69001: Convert links to more usable buttons (GH-129591) (#130338) gh-69001: Convert links to more usable buttons (GH-129591) In Lib/idlelib/help_about.py, there are 2 links that are not underlined or colored, hence hard to tell that clicking works. All buttons might get converted to colored and underlined links in the future. --------- (cherry picked from commit ed831b95a231ef949da13a261b40ee1ea0e126d7) Co-authored-by: Stan Ulbrych <89152624+stanfromirel...@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjre...@udel.edu> files: M Lib/idlelib/help_about.py diff --git a/Lib/idlelib/help_about.py b/Lib/idlelib/help_about.py index 81c65f6264e7b9..750da373272298 100644 --- a/Lib/idlelib/help_about.py +++ b/Lib/idlelib/help_about.py @@ -87,16 +87,19 @@ def create_widgets(self): byline.grid(row=2, column=0, sticky=W, columnspan=3, padx=10, pady=5) forums_url = "https://discuss.python.org" - forums = Label(frame_background, text="Python forums: "+forums_url, - justify=LEFT, fg=self.fg, bg=self.bg) - forums.grid(row=6, column=0, sticky=W, padx=10, pady=0) - forums.bind("<Button-1>", lambda event: webbrowser.open(forums_url)) + forums = Button(frame_background, text='Python (and IDLE) Discussion', width=35, + highlightbackground=self.bg, + command=lambda: webbrowser.open(forums_url)) + forums.grid(row=6, column=0, sticky=W, padx=10, pady=10) + + 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_url)) + docs = Button(frame_background, text='IDLE Documentation', width=35, + highlightbackground=self.bg, + command=lambda: webbrowser.open(docs_url)) + docs.grid(row=7, column=0, columnspan=2, sticky=W, padx=10, pady=10) + Frame(frame_background, borderwidth=1, relief=SUNKEN, height=2, bg=self.bg).grid(row=8, column=0, sticky=EW, _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com