Skip to content

Commit f3b8363

Browse files
authored
readd replace_it func
1 parent 059dc68 commit f3b8363

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/idlelib/replace.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ def find_it(self, event=None):
8686
"Handle the Find button."
8787
self.do_find(False)
8888

89+
def replace_it(self, event=None):
90+
"""Handle the Replace button.
91+
92+
If the find is successful, then perform replace.
93+
"""
94+
if self.do_find(self.ok):
95+
self.do_replace()
8996

9097
def default_command(self, event=None):
9198
"""Handle the Replace+Find button as the default command.

0 commit comments

Comments
 (0)