Lines Matching full:replace
1 """Replace dialog for IDLE. Inherits SearchDialogBase for GUI.
3 Defines various replace related functions like replace, replace all,
4 and replace+find.
14 def replace(text, insert_tags=None): function
34 title = "Replace Dialog"
35 icon = "Replace"
44 replvar: StringVar containing 'Replace with:' value.
81 self.replent = self.make_entry("Replace with:", self.replvar)[0]
86 The additional buttons are for Find, Replace,
87 Replace+Find, and Replace All.
91 self.make_button("Replace", self.replace_it)
92 self.make_button("Replace+Find", self.default_command, isdef=True)
93 self.make_button("Replace All", self.replace_all)
100 """Handle the Replace button.
102 If the find is successful, then perform replace.
108 """Handle the Replace+Find button as the default command.
110 First performs a replace and then, if the replace was
114 if self.do_replace(): # Only find next match if replace succeeded.
124 self.engine.report_error(repl, 'Invalid Replace Expression')
132 """Handle the Replace All button.
134 Search text for occurrences of the Find value and replace
159 # XXX ought to replace circular instead of top-to-bottom when wrapping
208 "Replace search pattern in text with replacement value."
296 replace(text)
299 button = Button(frame, text="Replace", command=show_replace)