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
b9e39c88
Kaydet (Commit)
b9e39c88
authored
Eyl 01, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Filter button should set selection's directory, too
üst
bf4d8f9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
FileDialog.py
Lib/lib-tk/FileDialog.py
+4
-1
FileDialog.py
Lib/tkinter/FileDialog.py
+4
-1
No files found.
Lib/lib-tk/FileDialog.py
Dosyayı görüntüle @
b9e39c88
...
...
@@ -77,9 +77,9 @@ class FileDialog:
def
go
(
self
,
directory
=
os
.
curdir
,
pattern
=
"*"
,
default
=
""
):
self
.
directory
=
directory
self
.
set_filter
(
directory
,
pattern
)
self
.
filter_command
()
self
.
set_selection
(
default
)
self
.
selection
.
focus_set
()
self
.
filter_command
()
self
.
top
.
grab_set
()
try
:
self
.
master
.
mainloop
()
...
...
@@ -136,6 +136,9 @@ class FileDialog:
self
.
files
.
delete
(
0
,
END
)
for
name
in
matchingfiles
:
self
.
files
.
insert
(
END
,
name
)
head
,
tail
=
os
.
path
.
split
(
self
.
selection
.
get
())
if
tail
==
os
.
curdir
:
tail
=
''
self
.
set_selection
(
tail
)
def
get_filter
(
self
):
filter
=
self
.
filter
.
get
()
...
...
Lib/tkinter/FileDialog.py
Dosyayı görüntüle @
b9e39c88
...
...
@@ -77,9 +77,9 @@ class FileDialog:
def
go
(
self
,
directory
=
os
.
curdir
,
pattern
=
"*"
,
default
=
""
):
self
.
directory
=
directory
self
.
set_filter
(
directory
,
pattern
)
self
.
filter_command
()
self
.
set_selection
(
default
)
self
.
selection
.
focus_set
()
self
.
filter_command
()
self
.
top
.
grab_set
()
try
:
self
.
master
.
mainloop
()
...
...
@@ -136,6 +136,9 @@ class FileDialog:
self
.
files
.
delete
(
0
,
END
)
for
name
in
matchingfiles
:
self
.
files
.
insert
(
END
,
name
)
head
,
tail
=
os
.
path
.
split
(
self
.
selection
.
get
())
if
tail
==
os
.
curdir
:
tail
=
''
self
.
set_selection
(
tail
)
def
get_filter
(
self
):
filter
=
self
.
filter
.
get
()
...
...
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