Jun-20-2019, 09:28 PM
Hi,
I'm using python 3.6.7 on Windows
I'm making a Tkinter GUI that will let you upload files to a destination using ftplib.
My problem is that if the files are big, the GUI will freeze (not responding) because the mainloop can't process the event, until the file are uploaded and the GUI are responsive again
I'm will not perform other actions while uploading files, but i would like to avoid that the GUI freeze completely.
Here is the function i'm calling
I'm using python 3.6.7 on Windows
I'm making a Tkinter GUI that will let you upload files to a destination using ftplib.
My problem is that if the files are big, the GUI will freeze (not responding) because the mainloop can't process the event, until the file are uploaded and the GUI are responsive again
I'm will not perform other actions while uploading files, but i would like to avoid that the GUI freeze completely.
Here is the function i'm calling
def loadDropdownFiles(self, txutmp): ftp = FTP(ipdest) ftp.login(user='xxx', passwd='xxx') ftp.cwd(txutmp) localfile = open(promodest, 'rb') ftp.storbinary('STOR ' + "promo.zip", localfile) tp.quit()Any tips on how i can avaid the GUI freeze?