@@ -225,17 +225,18 @@ def waitSignal(self, signal=None, timeout=1000, raising=None, check_params_cb=No
225
225
This defaults to ``True`` unless ``qt_wait_signal_raising = false``
226
226
is set in the config.
227
227
:param Callable check_params_cb:
228
- Optional callable(*parameters) that compares the provided signal parameters to some expected parameters.
228
+ Optional `` callable(*parameters)`` that compares the provided signal parameters to some expected parameters.
229
229
It has to match the signature of ``signal`` (just like a slot function would) and return ``True`` if
230
230
parameters match, ``False`` otherwise.
231
231
:returns:
232
232
``SignalBlocker`` object. Call ``SignalBlocker.wait()`` to wait.
233
233
234
234
.. note::
235
- Cannot have both ``signals`` and ``timeout`` equal ``None``, or
236
- else you will block indefinitely. We throw an error if this occurs.
235
+ Cannot have both ``signals`` and ``timeout`` equal ``None``, or
236
+ else you will block indefinitely. We throw an error if this occurs.
237
237
238
- .. note:: This method is also available as ``wait_signal`` (pep-8 alias)
238
+ .. note::
239
+ This method is also available as ``wait_signal`` (pep-8 alias)
239
240
"""
240
241
if raising is None :
241
242
raising_val = self ._request .config .getini ('qt_wait_signal_raising' )
@@ -289,12 +290,16 @@ def waitSignals(self, signals=None, timeout=1000, raising=None, check_params_cbs
289
290
Instead of a specific callable, ``None`` can be provided, to disable parameter checking for the
290
291
corresponding signal.
291
292
If the number of callbacks doesn't match the number of signals ``ValueError`` will be raised.
292
- :param str order: determines the order in which to expect signals
293
- * ``"none"``: no order is enforced
294
- * ``"strict"``: signals have to be emitted strictly in the provided order
295
- (e.g. fails when expecting signals [a, b] and [a, a, b] is emitted)
296
- * ``"simple"``: like "strict", but signals may be emitted in-between the provided ones, e.g. expected
297
- ``signals`` == [a, b, c] and actually emitted signals = [a, a, b, a, c] works (would fail with "strict")
293
+ :param str order:
294
+ Determines the order in which to expect signals:
295
+
296
+ - ``"none"``: no order is enforced
297
+ - ``"strict"``: signals have to be emitted strictly in the provided order
298
+ (e.g. fails when expecting signals [a, b] and [a, a, b] is emitted)
299
+ - ``"simple"``: like "strict", but signals may be emitted in-between the provided ones, e.g. expected
300
+ ``signals == [a, b, c]`` and actually emitted ``signals = [a, a, b, a, c]`` works
301
+ (would fail with ``"strict"``).
302
+
298
303
:returns:
299
304
``MultiSignalBlocker`` object. Call ``MultiSignalBlocker.wait()``
300
305
to wait.
0 commit comments