Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5df57e1a
Commit
5df57e1a
authored
Sep 18, 2002
by
Kurt B. Kaiser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge Py Idle changes:
Rev 1.3 tim_one Convert a pile of obvious "yes/no" functions to return bool.
parent
9b9f5324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/idlelib/SearchDialog.py
Lib/idlelib/SearchDialog.py
+5
-5
No files found.
Lib/idlelib/SearchDialog.py
View file @
5df57e1a
...
...
@@ -34,9 +34,9 @@ class SearchDialog(SearchDialogBase):
def
find_again
(
self
,
text
):
if
not
self
.
engine
.
getpat
():
self
.
open
(
text
)
return
0
return
False
if
not
self
.
engine
.
getprog
():
return
0
return
False
res
=
self
.
engine
.
search_text
(
text
)
if
res
:
line
,
m
=
res
...
...
@@ -48,17 +48,17 @@ class SearchDialog(SearchDialogBase):
sellast
=
text
.
index
(
"sel.last"
)
if
selfirst
==
first
and
sellast
==
last
:
text
.
bell
()
return
0
return
False
except
TclError
:
pass
text
.
tag_remove
(
"sel"
,
"1.0"
,
"end"
)
text
.
tag_add
(
"sel"
,
first
,
last
)
text
.
mark_set
(
"insert"
,
self
.
engine
.
isback
()
and
first
or
last
)
text
.
see
(
"insert"
)
return
1
return
True
else
:
text
.
bell
()
return
0
return
False
def
find_selection
(
self
,
text
):
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