From 90ea60a3ac1a65b4f4bf62348f1c350db352c269 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Sun, 25 Dec 2022 12:02:06 +0200 Subject: [PATCH] Added multithreading libs --- gui/modules/core/qt_updater.py | 5 +++++ requirements.txt | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 gui/modules/core/qt_updater.py diff --git a/gui/modules/core/qt_updater.py b/gui/modules/core/qt_updater.py new file mode 100644 index 0000000..48256be --- /dev/null +++ b/gui/modules/core/qt_updater.py @@ -0,0 +1,5 @@ +from qt_thread_updater import get_updater + + +def call(func, *args): + get_updater().call_in_main(func, *args) diff --git a/requirements.txt b/requirements.txt index 16bc518..0ca280f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,6 @@ numpy validators pydub pafy -youtube-dl==2020.12.2 \ No newline at end of file +youtube-dl==2020.12.2 +ezzthread +qt-thread-updater \ No newline at end of file