示例#1
0
def ask_delete_file(parent, path):
    return dialogs.message_dialog(parent,
        "Are you sure you want to delete '%s'?" % path,
        "Confirm Delete",
        wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) == wx.ID_YES
示例#2
0
def ask_copy_file(parent, srcpath, dstpath):
    return dialogs.message_dialog(parent,
        "Are you sure you want to copy:\n\t%s\n\nDestination:\n\t%s" % (srcpath, dstpath),
        "Confirm Copy",
        wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) == wx.ID_YES
示例#3
0
def ask_overwrite_file(parent, dstpath):
    return dialogs.message_dialog(parent,
        "The destination already exists. Overwrite?",
        "Confirm Overwrite",
        wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) == wx.ID_YES
示例#4
0
def ask_move_file(srcpath, dstpath):
    return dialogs.message_dialog(get_top_window(),
        "Are you sure you want to move:\n\t%s\n\nDestination:\n\t%s" % (srcpath, dstpath),
        "Confirm Move",
        wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) == wx.ID_YES