def error_message(exception,
text="An error occurred when processing your request",
title="Error"):
msg = QMessageBox()
msg.setIcon(QMessageBox.Information)
msg.setText(text)
msg.setWindowTitle(title)
msg.setDetailedText(str(exception))
msg.setStandardButtons(QMessageBox.Ok)
msg.exec_()
评论列表
文章目录