From 267a02a49e7bde6ce446e820ca11b231ded63c04 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Apr 2011 15:29:09 -0600 Subject: [PATCH] ... --- src/calibre/gui2/dialogs/message_box.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/dialogs/message_box.py b/src/calibre/gui2/dialogs/message_box.py index 56e0065f54..6034618458 100644 --- a/src/calibre/gui2/dialogs/message_box.py +++ b/src/calibre/gui2/dialogs/message_box.py @@ -143,11 +143,23 @@ class ViewLog(QDialog): # {{{ QApplication.clipboard().setText(txt) # }}} -class ProceedNotification(MessageBox): +class ProceedNotification(MessageBox): # {{{ proceed = pyqtSignal(object) def __init__(self, payload, html_log, log_viewer_title, title, msg, det_msg='', show_copy_button=False, parent=None): + ''' + A non modal popup that notifies the user that a background task has + been completed. If they user clicks yes, the proceed signal is emitted + with payload as its argument. + + :param payload: Arbitrary object, emitted in the proceed signal + :param html_log: An HTML or plain text log + :param log_viewer_title: The title for the log viewer window + :param title: The title fo rthis popup + :param msg: The msg to display + :param det_msg: Detailed message + ''' MessageBox.__init__(self, MessageBox.QUESTION, title, msg, det_msg=det_msg, show_copy_button=show_copy_button, parent=parent) @@ -173,6 +185,7 @@ class ProceedNotification(MessageBox): self.proceed.disconnect() except: pass +# }}} if __name__ == '__main__': app = QApplication([])