Lines Matching full:replace
1 """Replace dialog for IDLE. Inherits SearchDialogBase for GUI.
3 Defines various replace related functions like replace, replace all,
4 replace+find.
13 def replace(text): function
26 title = "Replace Dialog"
27 icon = "Replace"
34 """Display the replace dialog"""
52 self.replent = self.make_entry("Replace with:", self.replvar)[0]
57 self.make_button("Replace", self.replace_it)
58 self.make_button("Replace+Find", self.default_command, 1)
59 self.make_button("Replace All", self.replace_all)
69 "Replace and find next."
71 if self.do_replace(): # Only find next match if replace succeeded.
77 in the replace field, if needed. """
82 self.engine.report_error(repl, 'Invalid Replace Expression')
90 """Replace all instances of patvar with replvar in text"""
109 # XXX ought to replace circular instead of top-to-bottom when wrapping
233 replace(text)
236 button = Button(frame, text="Replace", command=show_replace)