Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
94338de4
Kaydet (Commit)
94338de4
authored
Ock 23, 2014
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
üst
09761e7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
EditorWindow.py
Lib/idlelib/EditorWindow.py
+5
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
94338de4
import
importlib
import
importlib.abc
import
os
from
platform
import
python_version
import
re
import
string
import
sys
...
...
@@ -955,11 +956,14 @@ class EditorWindow(object):
self
.
undo
.
reset_undo
()
def
short_title
(
self
):
pyversion
=
"Python "
+
python_version
()
+
": "
filename
=
self
.
io
.
filename
if
filename
:
filename
=
os
.
path
.
basename
(
filename
)
else
:
filename
=
"Untitled"
# return unicode string to display non-ASCII chars correctly
return
self
.
_filename_to_unicode
(
filename
)
return
pyversion
+
self
.
_filename_to_unicode
(
filename
)
def
long_title
(
self
):
# return unicode string to display non-ASCII chars correctly
...
...
Misc/NEWS
Dosyayı görüntüle @
94338de4
...
...
@@ -274,6 +274,9 @@ Library
IDLE
----
--Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
- Issue #18960: IDLE now ignores the source encoding declaration on the second
line if the first line contains anything except a comment.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment