def displayError(self, parent, m=None, t='Error found', type=QtGui.QMessageBox.Information, details=''):
    dError = QtGui.QMessageBox(parent)
    dError.setText(m)
    dError.setWindowTitle(t)
    dError.setIcon(type)
    dError.setStandardButtons(QtGui.QMessageBox.Ok)
    dError.setEscapeButton(QtGui.QMessageBox.Ok)
    if (details != ''):
        dError.setDetailedText(details)
    dError.show()
def displayError(self, parent, m=None, t='Error found', type=QtGui.QMessageBox.Information, details=):
    dError = QtGui.QMessageBox(parent)
    dError.setText(m)
    dError.setWindowTitle(t)
    dError.setIcon(type)
    dError.setStandardButtons(QtGui.QMessageBox.Ok)
    dError.setEscapeButton(QtGui.QMessageBox.Ok)
    if (details != ):
        dError.setDetailedText(details)
    dError.show()