def METHOD_NAME(self):
    METHOD_NAME, ok = QtWidgets.QFontDialog.getFont(self.format.METHOD_NAME(), self)
    if ok:
        self.format.setFont(METHOD_NAME)
        self.textEdit.setCurrentCharFormat(self.format)
        self.textEdit.setFocus()