Basic threaded downloads -might- be working now.
commit43ce005af721cf05b6394bbd407a64ee27b92b0d
authorPaul Goins <general@vultaire.net>
Mon, 22 Feb 2010 00:05:50 +0000 (22 09:05 +0900)
committerPaul Goins <general@vultaire.net>
Mon, 22 Feb 2010 00:05:50 +0000 (22 09:05 +0900)
treec958f6e092b7de6ba3b4ae660f507a4c8520097d
parentb60a0514828a41c23b57f229fbfd390157e82bc8
Basic threaded downloads -might- be working now.

Changes:

- Made DownloadThread's out_queue.get explicitly non-blocking.

- Finished first version of GTK timeout callback, seems to work.

- Updated DownloadThread.  Should create a file only upon successful
  urlopen.  Should also automatically create the necessary folder if
  not present.  (Maybe this should be explicit rather than automatic?)

- Made both download dialogs take a reference to the app object... I'm
  still undecided whether it's better to have it included in all
  relevant objects explicitly, or whether it should be made a global
  ref which is imported as needed...
jben/jben/download_thread.py
jben/jben/interface/gtk/dialog/dict_download.py
jben/jben/interface/gtk/dialog/dict_download_select.py
jben/jben/interface/gtk/window/main.py