Skip to content
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.

Commit

Permalink
Forgot to add new file
Browse files Browse the repository at this point in the history
  • Loading branch information
raelgc committed Apr 11, 2017
1 parent de5eae8 commit 448532d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scudcloud/downloader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from urllib import request

from PyQt5.QtCore import QThread

class Downloader(QThread):

def __init__(self, wrapper, icon, path):
QThread.__init__(self)
self.wrapper = wrapper
self.icon = icon
self.path = path

def run(self):
file_name, headers = request.urlretrieve(self.icon, self.path)
self.wrapper.icon = file_name

0 comments on commit 448532d

Please sign in to comment.