def on_try_clear_queued(self, widget): option_dialog( parent=self.frame.MainWindow, title=_('Clear Queued Downloads'), message=_('Are you sure you wish to clear all queued downloads?'), callback=self.on_clear_response )
def download_large_folder(self, username, folder, numfiles, conn, file_list): option_dialog( parent=self.frame.MainWindow, title=_("Download %(num)i files?") % {'num': numfiles}, message=_("Are you sure you wish to download %(num)i files from %(user)s's folder %(folder)s?") % {'num': numfiles, 'user': username, 'folder': folder}, callback=self.folder_download_response, callback_data=(conn, file_list) )
def on_delete_chat_log(self, widget): option_dialog( parent=self.frame.MainWindow, title=_('Delete Logged Messages?'), message=_('Are you sure you wish to permanently delete all logged messages for this user?'), callback=self.delete_chat_log_response )
def on_clear_wishlist(self, *args): option_dialog( parent=self.WishListDialog, title=_('Clear Wishlist?'), message=_('Are you sure you wish to clear your wishlist?'), callback=self.clear_wishlist_response)
def on_reset_statistics(self, *args): option_dialog( parent=self.StatisticsDialog, title=_('Reset Transfer Statistics?'), message=_('Are you sure you wish to reset transfer statistics?'), callback=self.reset_stats_response)