|
@ -155,7 +155,7 @@ class CancelButton(QPushButton): |
|
|
QPushButton.__init__(self, label or _("Cancel")) |
|
|
QPushButton.__init__(self, label or _("Cancel")) |
|
|
self.clicked.connect(dialog.reject) |
|
|
self.clicked.connect(dialog.reject) |
|
|
|
|
|
|
|
|
class MessageBoxMixin: |
|
|
class MessageBoxMixin(object): |
|
|
def question(self, msg, parent=None, title=None, icon=None): |
|
|
def question(self, msg, parent=None, title=None, icon=None): |
|
|
Yes, No = QMessageBox.Yes, QMessageBox.No |
|
|
Yes, No = QMessageBox.Yes, QMessageBox.No |
|
|
return self.msg_box(icon or QMessageBox.Question, |
|
|
return self.msg_box(icon or QMessageBox.Question, |
|
|