✨ Worker is able to return its QThread.

This commit is contained in:
Robert Honz
2024-04-03 07:02:45 +02:00
parent 148b77328a
commit 0d325170b6
+3
View File
@@ -29,3 +29,6 @@ class Worker(QtCore.QRunnable):
Initialise the runner function with passed args, kwargs. Initialise the runner function with passed args, kwargs.
""" """
self.fn(*self.args, **self.kwargs) self.fn(*self.args, **self.kwargs)
def thread(self) -> QtCore.QThread:
return QtCore.QThread.currentThread()