summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/help_about.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-30 22:54:01 (GMT)
committerGitHub <noreply@github.com>2024-07-30 22:54:01 (GMT)
commita21317f07bb595b8ed05e4debde7ac4af19e9ef1 (patch)
treeb27f0b30df64daf4456e81f9d1979e2c278c2030 /Lib/idlelib/help_about.py
parente65aea96c392a8444d463fe152427fc9a19edd5a (diff)
downloadcpython-a21317f07bb595b8ed05e4debde7ac4af19e9ef1.zip
cpython-a21317f07bb595b8ed05e4debde7ac4af19e9ef1.tar.gz
cpython-a21317f07bb595b8ed05e4debde7ac4af19e9ef1.tar.bz2
[3.13] GH-122482: Make About IDLE direct discussion to DPO (GH-122483) (#122485)
Currently, idle-dev@python.org and idle-dev mailing list serve to collect spam (90+%). Change About IDLE to direct discussions to discuss.python.org. Users are already doing so. (cherry picked from commit 29c04dfa2718dd25ad8b381a1027045b312f9739) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/help_about.py')
-rw-r--r--Lib/idlelib/help_about.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/Lib/idlelib/help_about.py b/Lib/idlelib/help_about.py
index aa1c352..81c65f6 100644
--- a/Lib/idlelib/help_about.py
+++ b/Lib/idlelib/help_about.py
@@ -85,15 +85,18 @@ class AboutDialog(Toplevel):
byline = Label(frame_background, text=byline_text, justify=LEFT,
fg=self.fg, bg=self.bg)
byline.grid(row=2, column=0, sticky=W, columnspan=3, padx=10, pady=5)
- 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)
+
+ 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))
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']))
+ docs.bind("<Button-1>", lambda event: webbrowser.open(docs_url))
Frame(frame_background, borderwidth=1, relief=SUNKEN,
height=2, bg=self.bg).grid(row=8, column=0, sticky=EW,
@@ -123,9 +126,7 @@ class AboutDialog(Toplevel):
height=2, bg=self.bg).grid(row=11, column=0, sticky=EW,
columnspan=3, padx=5, pady=5)
- idle = Label(frame_background,
- text='IDLE',
- fg=self.fg, bg=self.bg)
+ idle = Label(frame_background, text='IDLE', fg=self.fg, bg=self.bg)
idle.grid(row=12, column=0, sticky=W, padx=10, pady=0)
idle_buttons = Frame(frame_background, bg=self.bg)
idle_buttons.grid(row=13, column=0, columnspan=3, sticky=NSEW)