def show_save_message_box( text ): message_box = QMessageBox() message_box.setText(text) message_box.setInformativeText(u"Do you want to save your change") message_box.setStandardButtons(QMessageBox.Save | QMessageBox.Discard | QMessageBox.Cancel ) message_box.setDefaultButton(QMessageBox.Save) return message_box.exec_()
def show_message_box(text): message_box = QMessageBox() message_box.setText(text) return message_box.exec_()