Пример #1
0
 def download(self, share, directory=None):    
     if not directory:
         dl = Download.get_download(share, Configuration.save_dir + "/" + share.name, date.today(), 1)
     else:
         dl = Download.get_download(share, directory + "/" + share.name, date.today(), 1)
     TabDownloads.instance.add_download(dl)
     dl.start_download()
     self.tabs.setCurrentWidget(self.tab_downloads)
Пример #2
0
 def download(self, share):
     dl = Download.get_download(share, share.name, date.today())
     TabDownloads.instance.add_download(dl)
     dl.start_download()