@@ -216,8 +216,12 @@ def waitSignal(self, signal=None, timeout=1000, raising=None, check_params_cb=No
216
216
.. versionadded:: 1.4
217
217
The *raising* parameter.
218
218
219
+ .. versionadded:: 2.0
220
+ The *check_params_cb* parameter.
221
+
219
222
:param Signal signal:
220
- A signal to wait for. Set to ``None`` to just use timeout.
223
+ A signal to wait for, or a tuple ``(signal, signal_name_as_str)`` to improve the error message that is part
224
+ of ``SignalTimeoutError``. Set to ``None`` to just use timeout.
221
225
:param int timeout:
222
226
How many milliseconds to wait before resuming control flow.
223
227
:param bool raising:
@@ -226,7 +230,7 @@ def waitSignal(self, signal=None, timeout=1000, raising=None, check_params_cb=No
226
230
This defaults to ``True`` unless ``qt_wait_signal_raising = false``
227
231
is set in the config.
228
232
:param Callable check_params_cb:
229
- Optional ``callable(*parameters) `` that compares the provided signal parameters to some expected parameters.
233
+ Optional ``callable`` that compares the provided signal parameters to some expected parameters.
230
234
It has to match the signature of ``signal`` (just like a slot function would) and return ``True`` if
231
235
parameters match, ``False`` otherwise.
232
236
:returns:
@@ -275,8 +279,9 @@ def waitSignals(self, signals=None, timeout=1000, raising=None, check_params_cbs
275
279
blocker.wait()
276
280
277
281
:param list signals:
278
- A list of :class:`Signal` objects to wait for. Set to ``None`` to just use
279
- timeout.
282
+ A list of :class:`Signal` objects to wait for. Alternatively: a list of (``Signal, str``) tuples of the form
283
+ ``(signal, signal_name_as_str)`` to improve the error message that is part of ``SignalTimeoutError``.
284
+ Set to ``None`` to just use timeout.
280
285
:param int timeout:
281
286
How many milliseconds to wait before resuming control flow.
282
287
:param bool raising:
0 commit comments