Create screen for Rx/Tx

This commit is contained in:
alessandro90
2019-03-30 22:52:26 +01:00
parent 2c7c9b9447
commit 432116a13d
8 changed files with 885 additions and 4923 deletions

View File

@@ -33,8 +33,6 @@ class DownloadThread(QThread):
def run(self):
try:
db = urllib3.PoolManager().request('GET', Database.LINK_LOC)
# db = urllib.request.urlopen(constants.Database.LINK_LOC)
# raise urllib.error.URLError('Test')
except urllib3.exceptions.MaxRetryError: # No internet connection.
self.__status = ThreadStatus.NO_CONNECTION_ERR
return
@@ -54,7 +52,6 @@ class DownloadThread(QThread):
if os.path.exists(Constants.DATA_FOLDER):
rmtree(Constants.DATA_FOLDER)
try:
# data_folder = db.read()
with ZipFile(BytesIO(db.data)) as zipped:
zipped.extractall()
except: