Add Constants class in utilities

This commit is contained in:
alessandro90
2018-11-04 11:43:27 +01:00
parent a7c44ca981
commit cf8be9f6e3
4 changed files with 73 additions and 68 deletions

View File

@@ -5,7 +5,7 @@ from threads import DownloadThread, ThreadStatus
Ui_Download_window, _ = uic.loadUiType("download_db_window.ui")
class DownloadWindow(QWidget, Ui_Download_window):
def __init__(self, db_location, data_folder):
def __init__(self):
super().__init__()
self.setupUi(self)
self.setWindowFlags(
@@ -35,7 +35,7 @@ class DownloadWindow(QWidget, Ui_Download_window):
the downloaded file has been discarded.""")
self.bad_file_msg.finished.connect(self.close)
self.download_thread = DownloadThread(db_location, data_folder)
self.download_thread = DownloadThread()
self.download_thread.finished.connect(self.wait_close)
self.cancel_btn.clicked.connect(self.terminate_process)