FTP Download Manager

Post here if you need help with creating a Graphical User Interface in Python.

FTP Download Manager

Postby precyoz » Tue Jul 23, 2013 3:03 am

I have here a sample script and it's working:

Code: Select all
import sys
import os
from ftplib import FTP

ftp = FTP("samoa.gsfc.nasa.gov")

listing = []
ftp.retrlines("LIST", listing.append)
words = listing[0].split(None, 8)
filename = words[-1].lstrip()

#download the file
local_filename = os.path.join(r"C:\example\folderOne", filename)
lf = open(local_filename, "wb")
def verbose_write(data):
    sys.stdout.write('Downloading the file...\r')
ftp.retrbinary("RETR " + filename, verbose_write, 8*1024)

What i want is to make/turn it into a GUI/Download Manager. How am i going to do this?Because my task is to make a download manager.
Posts: 18
Joined: Wed Jul 03, 2013 6:23 am

Re: FTP Download Manager

Postby Vik2015 » Tue Sep 03, 2013 5:18 pm

First of all, you have to learn some GUI library for python. I recommend wxPython http://wxpython.org/, cuz it is easy to learn, and well documented. Might also look at http://sourceforge.net/projects/ftpcube/

Good luck
Posts: 21
Joined: Sat May 18, 2013 8:53 pm
Location: Computer

Return to GUI

Who is online

Users browsing this forum: No registered users and 3 guests