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
0f4402dc
Kaydet (Commit)
0f4402dc
authored
Eyl 18, 2002
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Merge Py Idle changes:
Rev 1.3 tim_one Convert a pile of obvious "yes/no" functions to return bool.
üst
05bab1ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
SearchDialog.py
Lib/idlelib/SearchDialog.py
+5
-5
No files found.
Lib/idlelib/SearchDialog.py
Dosyayı görüntüle @
0f4402dc
...
@@ -34,9 +34,9 @@ class SearchDialog(SearchDialogBase):
...
@@ -34,9 +34,9 @@ class SearchDialog(SearchDialogBase):
def
find_again
(
self
,
text
):
def
find_again
(
self
,
text
):
if
not
self
.
engine
.
getpat
():
if
not
self
.
engine
.
getpat
():
self
.
open
(
text
)
self
.
open
(
text
)
return
0
return
False
if
not
self
.
engine
.
getprog
():
if
not
self
.
engine
.
getprog
():
return
0
return
False
res
=
self
.
engine
.
search_text
(
text
)
res
=
self
.
engine
.
search_text
(
text
)
if
res
:
if
res
:
line
,
m
=
res
line
,
m
=
res
...
@@ -48,17 +48,17 @@ class SearchDialog(SearchDialogBase):
...
@@ -48,17 +48,17 @@ class SearchDialog(SearchDialogBase):
sellast
=
text
.
index
(
"sel.last"
)
sellast
=
text
.
index
(
"sel.last"
)
if
selfirst
==
first
and
sellast
==
last
:
if
selfirst
==
first
and
sellast
==
last
:
text
.
bell
()
text
.
bell
()
return
0
return
False
except
TclError
:
except
TclError
:
pass
pass
text
.
tag_remove
(
"sel"
,
"1.0"
,
"end"
)
text
.
tag_remove
(
"sel"
,
"1.0"
,
"end"
)
text
.
tag_add
(
"sel"
,
first
,
last
)
text
.
tag_add
(
"sel"
,
first
,
last
)
text
.
mark_set
(
"insert"
,
self
.
engine
.
isback
()
and
first
or
last
)
text
.
mark_set
(
"insert"
,
self
.
engine
.
isback
()
and
first
or
last
)
text
.
see
(
"insert"
)
text
.
see
(
"insert"
)
return
1
return
True
else
:
else
:
text
.
bell
()
text
.
bell
()
return
0
return
False
def
find_selection
(
self
,
text
):
def
find_selection
(
self
,
text
):
pat
=
text
.
get
(
"sel.first"
,
"sel.last"
)
pat
=
text
.
get
(
"sel.first"
,
"sel.last"
)
...
...
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