Beispiel #1
0
    def on_try_clear_queued(self, *args):

        option_dialog(
            parent=self.frame.MainWindow,
            title=_('Clear Queued Uploads'),
            message=_('Are you sure you wish to clear all queued uploads?'),
            callback=self.on_clear_response)
Beispiel #2
0
    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.on_reset_statistics_response)
Beispiel #3
0
    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)
Beispiel #4
0
    def on_delete_room_log(self, *args):

        option_dialog(
            parent=self.frame.MainWindow,
            title=_('Delete Logged Messages?'),
            message=
            _('Are you sure you wish to permanently delete all logged messages for this room?'
              ),
            callback=self.on_delete_room_log_response)
Beispiel #5
0
    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))
Beispiel #6
0
    def remove_all_pages(self):

        option_dialog(parent=self.notebook.get_toplevel(),
                      title=_('Close All Tabs?'),
                      message=_('Are you sure you wish to close all tabs?'),
                      callback=self.remove_all_pages_response)