def METHOD_NAME(self, event=None):
    if self.do_find(self.ok):
        if self.do_replace():   # Only find next match if replace succeeded.
                                # A bad re can cause it to fail.
            self.do_find(0)