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
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
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
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