Skip to content

Commit 29c04df

Browse files
authored
pythonGH-122482: Make About IDLE direct discussion to DPO (python#122483)
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.
1 parent 0976339 commit 29c04df

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

Lib/idlelib/News3.txt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Released on 2024-10-xx
44
=========================
55

66

7+
gh-122482: Change About IDLE to direct users to discuss.python.org
8+
instead of the now unused idle-dev email and mailing list.
9+
710
gh-78889: Stop Shell freezes by blocking user access to non-method
811
sys.stdout.shell attributes, which are all private.
912

Lib/idlelib/help_about.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,18 @@ def create_widgets(self):
8585
byline = Label(frame_background, text=byline_text, justify=LEFT,
8686
fg=self.fg, bg=self.bg)
8787
byline.grid(row=2, column=0, sticky=W, columnspan=3, padx=10, pady=5)
88-
email = Label(frame_background, text='email: idle-dev@python.org',
89-
justify=LEFT, fg=self.fg, bg=self.bg)
90-
email.grid(row=6, column=0, columnspan=2, sticky=W, padx=10, pady=0)
88+
89+
forums_url = "https://discuss.python.org"
90+
forums = Label(frame_background, text="Python forums: "+forums_url,
91+
justify=LEFT, fg=self.fg, bg=self.bg)
92+
forums.grid(row=6, column=0, sticky=W, padx=10, pady=0)
93+
forums.bind("<Button-1>", lambda event: webbrowser.open(forums_url))
9194
docs_url = ("https://docs.python.org/%d.%d/library/idle.html" %
9295
sys.version_info[:2])
9396
docs = Label(frame_background, text=docs_url,
9497
justify=LEFT, fg=self.fg, bg=self.bg)
9598
docs.grid(row=7, column=0, columnspan=2, sticky=W, padx=10, pady=0)
96-
docs.bind("<Button-1>", lambda event: webbrowser.open(docs['text']))
99+
docs.bind("<Button-1>", lambda event: webbrowser.open(docs_url))
97100

98101
Frame(frame_background, borderwidth=1, relief=SUNKEN,
99102
height=2, bg=self.bg).grid(row=8, column=0, sticky=EW,
@@ -123,9 +126,7 @@ def create_widgets(self):
123126
height=2, bg=self.bg).grid(row=11, column=0, sticky=EW,
124127
columnspan=3, padx=5, pady=5)
125128

126-
idle = Label(frame_background,
127-
text='IDLE',
128-
fg=self.fg, bg=self.bg)
129+
idle = Label(frame_background, text='IDLE', fg=self.fg, bg=self.bg)
129130
idle.grid(row=12, column=0, sticky=W, padx=10, pady=0)
130131
idle_buttons = Frame(frame_background, bg=self.bg)
131132
idle_buttons.grid(row=13, column=0, columnspan=3, sticky=NSEW)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Change About IDLE to direct users to discuss.python.org instead of the now
2+
unused idle-dev email and mailing list.

0 commit comments

Comments
 (0)