original_docstring: Automatically close a dialog opened during the context.
  
      Parameters
      ----------
      op : {'accept', 'reject'}, optional
          Whether to accept or reject the dialog.
  
      handler : callable, optional
          Callable taking as arguments the bot and the dialog, called before
          accepting or rejecting the dialog.
  
      cls : type, optional
          Dialog class to identify.
  
      time : float, optional
          Time to wait before handling the dialog in ms.
  
      skip_answer : bool, optional
          Skip answering to the dialog. If this is True the handler should handle
          the answer itself.
  
      
docstring: Automatically close a dialog opened during the context.
  Parameters
  
  op : {'accept', 'reject'}, optional
  Whether to accept or reject the dialog.
  
  handler : callable, optional
  Callable taking as arguments the bot and the dialog, called before
  accepting or rejecting the dialog.
  
  cls : type, optional
  Dialog class to identify.
  
  time : float, optional
  Time to wait before handling the dialog in ms.
  
  skip_answer : bool, optional
  Skip answering to the dialog. If this is True the handler should handle
  the answer itself.
docstring_tokens: Automatically close a dialog opened during the context . Parameters op : { ' accept ' ' reject ' } optional Whether to accept or reject the dialog . handler : callable optional Callable taking as arguments the bot and the dialog called before accepting or rejecting the dialog . cls : type optional Dialog class to identify . time : float optional Time to wait before handling the dialog in ms . skip_answer : bool optional Skip answering to the dialog . If this is True the handler should handle the answer itself .
code: def handle_dialog(qtbot, op='accept', handler=lambda qtbot, window: window,
                    cls=Dialog, time=100, skip_answer=False):
      """Automatically close a dialog opened during the context.
  
      Parameters
      ----------
      op : {'accept', 'reject'}, optional
          Whether to accept or reject the dialog.
  
      handler : callable, optional
          Callable taking as arguments the bot and the dialog, called before
          accepting or rejecting the dialog.
  
      cls : type, optional
          Dialog class to identify.
  
      time : float, optional
          Time to wait before handling the dialog in ms.
  
      skip_answer : bool, optional
          Skip answering to the dialog. If this is True the handler should handle
          the answer itself.
  
      """
      sch = ScheduledClosing(qtbot, cls, handler, op, skip_answer)
      timed_call(time, sch)
      try:
          yield
      except Exception:
          raise
      else:
          qtbot.wait_until(sch.was_called, timeout=10e3)
code_tokens: def handle_dialog ( qtbot , op = 'accept' , handler = lambda qtbot , window : window , cls = Dialog , time = 100 , skip_answer = False ) : sch = ScheduledClosing ( qtbot , cls , handler , op , skip_answer ) timed_call ( time , sch ) try : yield except Exception : raise else : qtbot . wait_until ( sch . was_called , timeout = 10e3 )
short_docstring: Automatically close a dialog opened during the context.
short_docstring_tokens: Automatically close a dialog opened during the context .
comment: """Automatically close a dialog opened during the context.
  
      Parameters
      ----------
      op : {'accept', 'reject'}, optional
          Whether to accept or reject the dialog.
  
      handler : callable, optional
          Callable taking as arguments the bot and the dialog, called before
          accepting or rejecting the dialog.
  
      cls : type, optional
          Dialog class to identify.
  
      time : float, optional
          Time to wait before handling the dialog in ms.
  
      skip_answer : bool, optional
          Skip answering to the dialog. If this is True the handler should handle
          the answer itself.
  
      """