-1

How am I going to create web browser-like window in wxpython wherein every time a button is clicked, this window will display all the files I want to download from an ftp site.

Any help would be appreciated. Thanks!

lovelyvm
  • 127
  • 2
  • 16

1 Answers1

0

You'll want to look at wx.html2 which contains the webview widget. This is included in wxPython 2.9. You can use that for your custom web client. For downloading files, I recommend using urllib or requests. You can read about that here: http://www.blog.pythonlibrary.org/2012/06/07/python-101-how-to-download-a-file/

Mike Driscoll
  • 32,629
  • 8
  • 45
  • 88
  • I already tried this and it's working but I don't know how to turn/make it into a GUI. – lovelyvm Aug 13 '13 at 02:17
  • There's an example in the wxPython demo that you can follow. – Mike Driscoll Aug 13 '13 at 13:27
  • Where could I find that demo about the GUI File Download Manager? – lovelyvm Aug 14 '13 at 01:33
  • 1
    No, no. Get the wxPython demo and follow its examples on how to use the html webview widget. If you had done some searching on Google, you might have also found this: http://ftpcube.sourceforge.net/ which is a wxPython FTP client. You can probably still use it for ideas even if it is old. – Mike Driscoll Aug 14 '13 at 13:21