'Reset the downloads back to zero'

def reset_downloads(self):

    for download in self.downloads.values():
        self.layout.removeWidget(download.progress_bar)
        download.progress_bar.close()
    self.downloads = {}
