This commit is contained in:
Kovid Goyal 2020-06-06 08:56:49 +05:30
parent f8cfbbe383
commit f6944a9407
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -393,18 +393,18 @@ def error_dialog(parent, title, msg, det_msg='', show=False,
def question_dialog(parent, title, msg, det_msg='', show_copy_button=False, def question_dialog(parent, title, msg, det_msg='', show_copy_button=False,
default_yes=True, default_yes=True,
# Skippable dialogs # Skippable dialogs
# Set skip_dialog_name to a unique name for this dialog # Set skip_dialog_name to a unique name for this dialog
# Set skip_dialog_msg to a message displayed to the user # Set skip_dialog_msg to a message displayed to the user
skip_dialog_name=None, skip_dialog_msg=_('Show this confirmation again'), skip_dialog_name=None, skip_dialog_msg=_('Show this confirmation again'),
skip_dialog_skipped_value=True, skip_dialog_skip_precheck=True, skip_dialog_skipped_value=True, skip_dialog_skip_precheck=True,
# Override icon (QIcon to be used as the icon for this dialog or string for I()) # Override icon (QIcon to be used as the icon for this dialog or string for I())
override_icon=None, override_icon=None,
# Change the text/icons of the yes and no buttons. # Change the text/icons of the yes and no buttons.
# The icons must be QIcon objects or strings for I() # The icons must be QIcon objects or strings for I()
yes_text=None, no_text=None, yes_icon=None, no_icon=None, yes_text=None, no_text=None, yes_icon=None, no_icon=None,
): ):
from calibre.gui2.dialogs.message_box import MessageBox from calibre.gui2.dialogs.message_box import MessageBox
if not isinstance(skip_dialog_name, unicode_type): if not isinstance(skip_dialog_name, unicode_type):