# Copyright: Damien Elmes # License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html from PyQt4.QtGui import * import ankiqt.forms save = QMessageBox.Save discard = QMessageBox.Discard cancel = QMessageBox.Cancel def ask(parent): return QMessageBox.question( parent, "Anki", _("""

Unsaved changes

There are unsaved changes. Would you like to save them, discard your changes, or cancel?"""), save | discard | cancel)