File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3333
3434# The default tab setting for a Text widget, in average-width characters.
3535TK_TABWIDTH_DEFAULT = 8
36- _py_version = ' (%s)' % platform .python_version ()
3736darwin = sys .platform == 'darwin'
3837
3938def _sphinx_version ():
@@ -1008,15 +1007,16 @@ def open_recent_file(fn_closure=file_name):
10081007 def saved_change_hook (self ):
10091008 short = self .short_title ()
10101009 long = self .long_title ()
1010+ _py_version = ' (%s)' % platform .python_version ()
10111011 if short and long and not macosx .isCocoaTk ():
10121012 # Don't use both values on macOS because
10131013 # that doesn't match platform conventions.
10141014 title = short + " - " + long + _py_version
10151015 elif short :
10161016 if short == "IDLE Shell" :
1017- title = short + _py_version
1017+ title = short + platform . python_version ()
10181018 else :
1019- title = short
1019+ title = short + _py_version
10201020 elif long :
10211021 title = long
10221022 else :
You can’t perform that action at this time.
0 commit comments