Anki/aqt/unsaved.py
Damien Elmes 103871a5b1 refactor file layout
- ankiqt->aqt
- move all the files in ui into the top level
- move icons_rc.py into aqt/forms, and the qrc into designer/
- remove setuptools
2011-04-28 09:26:45 +09:00

16 lines
501 B
Python

# Copyright: Damien Elmes <anki@ichi2.net>
# License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html
from PyQt4.QtGui import *
import aqt.forms
save = QMessageBox.Save
discard = QMessageBox.Discard
cancel = QMessageBox.Cancel
def ask(parent):
return QMessageBox.question(
parent, "Anki",
_("""<h1>Unsaved changes</h1>There are unsaved
changes. Would you like to save them, discard your
changes, or cancel?"""),
save | discard | cancel)