|
2008-03-13
, 18:50
|
|
Posts: 341 |
Thanked: 68 times |
Joined on Aug 2007
|
#2
|
The Following User Says Thank You to zeez For This Useful Post: | ||
|
2008-03-13
, 20:09
|
Posts: 95 |
Thanked: 16 times |
Joined on Feb 2008
|
#3
|
|
2008-03-13
, 20:26
|
Posts: 87 |
Thanked: 98 times |
Joined on Oct 2007
@ Austria
|
#4
|
Thanks would you happen to know how to use urllib.urlretrieve(url,file) and make it return the progress of the download?
>>> import urllib >>> def report_progress(count, size, total): ... print "downloaded", (count*size), "bytes of", total ... >>> urllib.urlretrieve("http://www.maemo.org/", "maemo.html", report_progress) downloaded 0 bytes of -1 downloaded 8192 bytes of -1 downloaded 16384 bytes of -1 ('maemo.html', <httplib.HTTPMessage instance at 0xb7640bac>) >>>
2.Can someone give me an example of opening another program in python?
3.Where does python get installed to?
also im using an n810 with pygtkeditor and python for maemo installed.