[Tutor] How to make ftplib show progress while uploading a large file

Dave Kuhlman dkuhlman at rexx.com
Sun Feb 4 21:49:18 CET 2007

On Sun, Feb 04, 2007 at 08:51:22PM +0100, Magnus Wirstr?m wrote:
> Hi all
> I'm workinga on a program that will upload a large file to a server 
> using ftp. I'm using ftplib to do this. I'm using a gui with wxpython 
> and i would like to have a progressbar showing in % how much have been 
> transfered. I have been googling but i can't make any sense of what i 
> have found. does anyone have a good example or could explain how to do 
> this ?

This code was originally given to me.  I've adapted it some.

Your will have to modify it for wxPython.  But, at least it gives
you some scaffolding to start with.  Note the "fancy" flag and
variable, which is probably what you want, not too sure.

Hope this helps.


Dave Kuhlman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testupload.py
Type: text/x-python
Size: 3740 bytes
Desc: not available
Url : http://mail.python.org/pipermail/tutor/attachments/20070204/9c1e39c6/attachment.py 

More information about the Tutor mailing list