def __init_download(self):
if not self.__validates(self.entry1_value.get(), self.entry2_value.get(), self.combobox_value.get(), self.entry4_value.get(), self.entry5_value.get()):
return
self.btn1_gui.state(['disabled'])
self.btn2_gui.state(['disabled'])
self.btn3_gui.state(['disabled'])
self.entry1_gui.state(['disabled'])
self.entry2_gui.state(['disabled'])
self.entry4_gui.state(['disabled'])
self.entry5_gui.state(['disabled'])
self.combobox_gui.state(['disabled'])
self.lbl7_value.set('\nBaixando...')
messagebox.showinfo('scrpr4dou', 'Iniciando download, aguarde...')
global col
col = scrpr4dou.Collection(self.combobox_value.get(), self.entry4_value.get(), self.entry5_value.get(), self.entry1_value.get(), self.entry2_value.get())
if col.to_local(datetime.datetime.now()):
if self.combobox_value.get() != 'Selecione...':
self.btn2_gui.state(['!disabled'])
messagebox.showinfo('scrpr4dou', 'Download concluído')
self.lbl7_value.set('')
评论列表
文章目录