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