(self, event=None)
Handle the Replace+Find button as the default command.

        First performs a replace and then, if the replace was
        successful, a find next.
Handle the Replace+Find button as the default command.
Handle the Replace + Find button as the default command .
def default_command(self, event=None):
        """Handle the Replace+Find button as the default command.

        First performs a replace and then, if the replace was
        successful, a find next.
        """
        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(False)
def default_command ( 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 ( False )