Answer the question
In order to leave comments, you need to log in
How in the thread to wait for the completion of the function called by the signal, and get the value from this function?
I emit a signal in the stream
self.signal_deer_2fa.emit()
tfa_code = ... (из функции сигнала как-то)
def signal_deer_2fa_f(self):
tfa = QtWidgets.QInputDialog.getText(self, 'Ввод 2фа.', 'Введите 2фа код:')
return tfa # или без него
Answer the question
In order to leave comments, you need to log in
the signal is emitted in the thread
the function bound to this signal is called
I need to wait in the thread until this function is executed and get the value from it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question