class FindReplaceDialog(QtGui.QDialog):

    def __init__(self, parent):
        """
        Initialize Find Replace Dialog
        """
        QtGui.QDialog.__init__(self, parent)
        self.ui = Ui_FindReplaceDialog()
        self.ui.setupUi(self)

    def set_text_edit(self, textedit):
        """
        Manage Find and Replace Dialog
        ...

        Parameters
        ----------
        textedit : str
        """
        self.ui.findReplaceForm.set_text_edit(textedit)

    def changeEvent(self, event):
        """
        If the language has changed retranlate the UI accordingly

        ...

        Parameters
        ----------
        event : QEvent
        """
        QtGui.QDialog.changeEvent(self, event)
        if event.type() == QtCore.QEvent.LanguageChange:
            self.ui.retranslateUi(self)
 def __init__(self, parent):
     """
     Initialize Find Replace Dialog
     """
     QtGui.QDialog.__init__(self, parent)
     self.ui = Ui_FindReplaceDialog()
     self.ui.setupUi(self)