def METHOD_NAME(self):
    # Button to search the document for something
    findButton = QtWidgets.QPushButton("Find",self)
    findButton.clicked.connect(self.find)
    # Button to replace the last finding
    replaceButton = QtWidgets.QPushButton("Replace",self)
    replaceButton.clicked.connect(self.replace)
    # Button to remove all findings
    allButton = QtWidgets.QPushButton("Replace all",self)
    allButton.clicked.connect(self.replaceAll)
    # Normal mode - radio button
    self.normalRadio = QtWidgets.QRadioButton("Normal",self)
    # Regular Expression Mode - radio button
    regexRadio = QtWidgets.QRadioButton("RegEx",self)
    # The field into which to type the query
    self.findField = QtWidgets.QTextEdit(self)
    self.findField.resize(250,50)
    # The field into which to type the text to replace the
    # queried text
    self.replaceField = QtWidgets.QTextEdit(self)
    self.replaceField.resize(250,50)
    layout = QtWidgets.QGridLayout()
    layout.addWidget(self.findField,1,0,1,4)
    layout.addWidget(self.normalRadio,2,2)
    layout.addWidget(regexRadio,2,3)
    layout.addWidget(findButton,2,0,1,2)
    layout.addWidget(self.replaceField,3,0,1,4)
    layout.addWidget(replaceButton,4,0,1,2)
    layout.addWidget(allButton,4,2,1,2)
    self.setGeometry(300,300,360,250)
    self.setWindowTitle("Find and Replace")
    self.setLayout(layout)
    # By default the normal mode is activated
    self.normalRadio.setChecked(True)