Skip to content

Commit 792acaa

Browse files
Commit
1 parent d2deb8f commit 792acaa

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Lib/idlelib/CREDITS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Major contributors since 2005:
3737
- 2014: Saimadhav Heblikar
3838
- 2015: Mark Roseman
3939
- 2017: Louie Lu, Cheryl Sabella, and Serhiy Storchaka
40+
- 2025: Stan Ulbrych
4041

4142
For additional details refer to NEWS.txt and Changelog.
4243

Lib/idlelib/editor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,11 +1013,11 @@ def saved_change_hook(self):
10131013
# that doesn't match platform conventions.
10141014
title = short + " - " + long + _py_version
10151015
elif short:
1016-
title = short
1016+
title = short + _py_version
10171017
elif long:
1018-
title = long
1018+
title = long + _py_version
10191019
else:
1020-
title = "untitled"
1020+
title = "untitled" + _py_version
10211021
icon = short or long or title
10221022
if not self.get_saved():
10231023
title = "*%s*" % title

Lib/idlelib/pyshell.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import linecache
2323
import os
2424
import os.path
25-
from platform import python_version
2625
import re
2726
import socket
2827
import subprocess
@@ -841,7 +840,7 @@ def display_executing_dialog(self):
841840
class PyShell(OutputWindow):
842841
from idlelib.squeezer import Squeezer
843842

844-
shell_title = "IDLE Shell " + python_version()
843+
shell_title = "IDLE Shell"
845844

846845
# Override classes
847846
ColorDelegator = ModifiedColorDelegator
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deduplicate version number in IDLE shell title bar after saving to a file.

0 commit comments

Comments
 (0)