8000 gh-69001: Convert links to more usable buttons by StanFromIreland · Pull Request #129591 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-69001: Convert links to more usable buttons #129591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Terry's suggestion
  • Loading branch information
StanFromIreland committed Feb 4, 2025
commit 751c88e3ab76400590d88954bf632de3bf497a4f
10 changes: 4 additions & 6 deletions Lib/idlelib/help_about.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,18 @@ def create_widgets(self):
byline.grid(row=2, column=0, sticky=W, columnspan=3, padx=10, pady=5)

forums_url = "https://discuss.python.org"
info_buttons = Frame(frame_background, bg=self.bg)
info_buttons.grid(row=3, column=0, columnspan=1, sticky=NSEW)
forums = Button(info_buttons, text='Python (and IDLE) Discussion', width=35,
forums = Button(frame_background, text='Python (and IDLE) Discussion', width=35,
highlightbackground=self.bg,
command=lambda: webbrowser.open(forums_url))
forums.grid(row=3, column=0, sticky=W, padx=10, pady=10)
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 = Button(info_buttons, text='IDLE Documentation', width=35,
docs = Button(frame_background, text='IDLE Documentation', width=35,
highlightbackground=self.bg,
command=lambda: webbrowser.open(docs_url))
docs.grid(row=4, column=0, columnspan=2, sticky=W, padx=10, pady=10)
docs.grid(row=7, column=0, columnspan=2, sticky=W, padx=10, pady=10)


Frame(frame_background, borderwidth=1, relief=SUNKEN,
Expand Down
Loading
0