ok so one of my functions is to open a url and read its contents and then write it in a file the problem is when i do that my UI freezes i know that i need to use asynchronous downloads but i dont seem to understand exatcly how to ! the url im openining is about 10-20 mg also would http://docs.python.org/library/threading.html help me in any way ? my code :
f = open("hello.txt",'wb')
datatowrite = urllib.urlopen(link).read()
f.write(datatowrite)
f.close()
an example would be much appreciated
Thanks