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
993e81a8
Kaydet (Commit)
993e81a8
authored
Kas 04, 2002
tarafından
Chui Tey
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
619127: Recent File Menu Not Updating
üst
f0a4668e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
IOBinding.py
Lib/idlelib/IOBinding.py
+13
-0
No files found.
Lib/idlelib/IOBinding.py
Dosyayı görüntüle @
993e81a8
...
@@ -218,6 +218,8 @@ class IOBinding:
...
@@ -218,6 +218,8 @@ class IOBinding:
self
.
set_filename
(
filename
)
self
.
set_filename
(
filename
)
self
.
text
.
mark_set
(
"insert"
,
"1.0"
)
self
.
text
.
mark_set
(
"insert"
,
"1.0"
)
self
.
text
.
see
(
"insert"
)
self
.
text
.
see
(
"insert"
)
self
.
updaterecentfileslist
(
filename
)
return
True
return
True
def
decode
(
self
,
chars
):
def
decode
(
self
,
chars
):
...
@@ -294,6 +296,7 @@ class IOBinding:
...
@@ -294,6 +296,7 @@ class IOBinding:
if
self
.
writefile
(
self
.
filename
):
if
self
.
writefile
(
self
.
filename
):
self
.
set_saved
(
1
)
self
.
set_saved
(
1
)
self
.
text
.
focus_set
()
self
.
text
.
focus_set
()
return
"break"
return
"break"
def
save_as
(
self
,
event
):
def
save_as
(
self
,
event
):
...
@@ -303,6 +306,8 @@ class IOBinding:
...
@@ -303,6 +306,8 @@ class IOBinding:
self
.
set_filename
(
filename
)
self
.
set_filename
(
filename
)
self
.
set_saved
(
1
)
self
.
set_saved
(
1
)
self
.
text
.
focus_set
()
self
.
text
.
focus_set
()
self
.
updaterecentfileslist
(
filename
)
return
"break"
return
"break"
def
save_a_copy
(
self
,
event
):
def
save_a_copy
(
self
,
event
):
...
@@ -310,6 +315,8 @@ class IOBinding:
...
@@ -310,6 +315,8 @@ class IOBinding:
if
filename
:
if
filename
:
self
.
writefile
(
filename
)
self
.
writefile
(
filename
)
self
.
text
.
focus_set
()
self
.
text
.
focus_set
()
self
.
updaterecentfileslist
(
filename
)
return
"break"
return
"break"
def
writefile
(
self
,
filename
):
def
writefile
(
self
,
filename
):
...
@@ -463,6 +470,12 @@ class IOBinding:
...
@@ -463,6 +470,12 @@ class IOBinding:
return
self
.
savedialog
.
show
(
initialdir
=
dir
,
initialfile
=
base
)
return
self
.
savedialog
.
show
(
initialdir
=
dir
,
initialfile
=
base
)
def
updaterecentfileslist
(
self
,
filename
):
#
# Updates recent file list on all editor windows
#
self
.
editwin
.
UpdateRecentFilesList
(
filename
)
def
test
():
def
test
():
root
=
Tk
()
root
=
Tk
()
class
MyEditWin
:
class
MyEditWin
:
...
...
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